Added resources to the platform description, fixed link in querytable for the init_ke...
[myslice.git] / debian / unfold.postinst
index 77a479e..dd5c680 100644 (file)
@@ -3,9 +3,13 @@
 # update-rc.d unfold defaults
 [ -d /var/unfold ] || mkdir /var/unfold
 chown -R www-data.www-data /var/unfold
+chmod -R 700 /var/unfold
+# upgrading from older packages -- temporary 
+[ -f /usr/share/unfold/myslice.sqlite3 ] && mv -f /usr/share/unfold/myslice.sqlite3 /var/unfold
+rm -f /etc/apache2/sites*/myslice.conf
+# upgrading end
 /usr/share/unfold/manage.py syncdb
 /usr/share/unfold/manage.py migrate
-chmod 700 /var/unfold/unfold.sqlite3
 a2dissite default
 a2ensite unfold.conf
 service apache2 restart