fix duplicate pre section
authorScott Baker <smbaker@gmail.com>
Thu, 15 May 2014 21:23:22 +0000 (14:23 -0700)
committerScott Baker <smbaker@gmail.com>
Thu, 15 May 2014 21:23:22 +0000 (14:23 -0700)
opencloud.spec

index 16f1b23..65fca1f 100644 (file)
@@ -59,6 +59,11 @@ if [ ! -f /usr/share/GeoIP/GeoLiteCity.dat ]; then
    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}
@@ -75,12 +80,6 @@ rm -rf %{buildroot}
 %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"