postinstall script cleans up any sequels from previous packaging
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 27 Nov 2013 21:23:26 +0000 (22:23 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 27 Nov 2013 21:23:26 +0000 (22:23 +0100)
debian/unfold.postinst

index 2fe651c..dd5c680 100644 (file)
@@ -4,6 +4,10 @@
 [ -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
 a2dissite default