X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=debian%2Funfold.postinst;h=dd5c68051c3324067dbab5b2ed29264e2ee28429;hb=db29e23d289c0edd696b8c6445765a908d59058c;hp=77a479e31f026c9cd31b5d721198394df620d372;hpb=c622863d98f57c1cfdaf12789c41644f51dd828b;p=myslice.git diff --git a/debian/unfold.postinst b/debian/unfold.postinst index 77a479e3..dd5c6805 100644 --- a/debian/unfold.postinst +++ b/debian/unfold.postinst @@ -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