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:
e7df4a1
)
fix duplicate pre section
author
Scott Baker
<smbaker@gmail.com>
Thu, 15 May 2014 21:23:22 +0000
(14:23 -0700)
committer
Scott Baker
<smbaker@gmail.com>
Thu, 15 May 2014 21:23:22 +0000
(14:23 -0700)
opencloud.spec
patch
|
blob
|
history
diff --git
a/opencloud.spec
b/opencloud.spec
index
16f1b23
..
65fca1f
100644
(file)
--- a/
opencloud.spec
+++ b/
opencloud.spec
@@
-59,6
+59,11
@@
if [ ! -f /usr/share/GeoIP/GeoLiteCity.dat ]; then
gzip -d /usr/share/GeoIP/GeoLiteCity*.gz
fi
gzip -d /usr/share/GeoIP/GeoLiteCity*.gz
fi
+if [ "$1" == 2 ] ; then
+ echo "UPGRADE - saving current state"
+ /opt/planetstack/scripts/opencloud dumpdata
+fi
+
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}
@@
-75,12
+80,6
@@
rm -rf %{buildroot}
%files -f %{_tmppath}/tmp-filelist
%defattr(-,root,root,-)
%files -f %{_tmppath}/tmp-filelist
%defattr(-,root,root,-)
-%pre
-if [ "$1" == 2 ] ; then
- echo "UPGRADE - saving current state"
- /opt/planetstack/scripts/opencloud dumpdata
-fi
-
%post
if [ "$1" == 1 ] ; then
echo "NEW INSTALL - initializing database"
%post
if [ "$1" == 1 ] ; then
echo "NEW INSTALL - initializing database"