git://git.onelab.eu
/
plstackapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d84c345
)
genkeys before running syncdb
author
Scott Baker
<smbaker@gmail.com>
Fri, 12 Sep 2014 22:38:24 +0000
(15:38 -0700)
committer
Scott Baker
<smbaker@gmail.com>
Fri, 12 Sep 2014 22:38:24 +0000
(15:38 -0700)
opencloud.spec
patch
|
blob
|
history
diff --git
a/opencloud.spec
b/opencloud.spec
index
6f282e1
..
4d72a55
100644
(file)
--- a/
opencloud.spec
+++ b/
opencloud.spec
@@
-1,7
+1,7
@@
Summary: OpenCloud core services
Name: opencloud
Version: 1.0.25
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
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
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
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
fi
# start the server