fix duplicate pre section
diff --git a/opencloud.spec b/opencloud.spec
index 16f1b23..65fca1f 100644
--- a/opencloud.spec
+++ b/opencloud.spec
@@ -59,6 +59,11 @@
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 @@
%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"