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}
%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"