From: Scott Baker Date: Fri, 12 Sep 2014 22:38:24 +0000 (-0700) Subject: genkeys before running syncdb X-Git-Url: http://git.onelab.eu/?p=plstackapi.git;a=commitdiff_plain;h=bc0e5feff49e27e7e18dde837a9a6987dc143820 genkeys before running syncdb --- diff --git a/opencloud.spec b/opencloud.spec index 6f282e1..4d72a55 100644 --- a/opencloud.spec +++ b/opencloud.spec @@ -1,7 +1,7 @@ Summary: OpenCloud core services Name: opencloud Version: 1.0.25 -Release: 7 +Release: 8 License: GPL+ Group: Development/Tools Source0: %{_tmppath}/%{name}-%{version}.tar.gz @@ -110,17 +110,19 @@ rm -rf %{buildroot} ln -s ec2_observer /opt/planetstack/observer ln -s config-opencloud.py /opt/planetstack/syndicate_observer/syndicatelib_config/config.py +if [ ! -e /opt/planetstack/public_keys ]; then + cd /opt/planetstack + scripts/opencloud genkeys +fi + if [ "$1" == 1 ] ; then echo "NEW INSTALL - initializing database" /opt/planetstack/scripts/opencloud initdb else echo "UPGRADE - doing evolution" /opt/planetstack/scripts/opencloud evolvedb -fi - -if [ ! -f /opt/planetstack/public_keys ]; then - cd /opt/planetstack - scripts/opencloud genkeys + #echo "UPGRADE - doing migration" + #/opt/planetstack/scripts/opencloud migratedb fi # start the server