fix /opt/planetstack deleted on update; bump version number
[plstackapi.git] / opencloud.spec
index 45bc849..cee6193 100644 (file)
@@ -1,6 +1,6 @@
 Summary: OpenCloud core services
 Name: opencloud
-Version: 1.0.2
+Version: 1.0.6
 Release: 1
 License: GPL+
 Group: Development/Tools
@@ -71,7 +71,9 @@ rm -rf %{buildroot}
 /opt/planetstack/scripts/opencloud initdb
 
 %preun
-rm -rf /opt/planetstack
+if [ "$1" = 0 ] ; then
+    rm -rf /opt/planetstack
+fi
 
 %changelog
 * Sat Feb 22 2014  Siobhan Tully  1.0.0