From bc0e5feff49e27e7e18dde837a9a6987dc143820 Mon Sep 17 00:00:00 2001 From: Scott Baker Date: Fri, 12 Sep 2014 15:38:24 -0700 Subject: [PATCH] genkeys before running syncdb --- opencloud.spec | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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 -- 2.43.0