From 34e179436882d33c2e5af52fa17068465d5ba130 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Wed, 27 Nov 2013 22:23:26 +0100 Subject: [PATCH] postinstall script cleans up any sequels from previous packaging --- debian/unfold.postinst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/debian/unfold.postinst b/debian/unfold.postinst index 2fe651c6..dd5c6805 100644 --- a/debian/unfold.postinst +++ b/debian/unfold.postinst @@ -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 -- 2.43.0