X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=debian%2Funfold.postinst;h=dd5c68051c3324067dbab5b2ed29264e2ee28429;hb=fa59e186d66333cb2471e3bf5af347fa72ed0883;hp=de85dd318ea2eca7e632bb01b68d355ca40dbce8;hpb=4dfd873aec658a5f2a22983c7221f8b7006aa475;p=myslice.git diff --git a/debian/unfold.postinst b/debian/unfold.postinst index de85dd31..dd5c6805 100644 --- a/debian/unfold.postinst +++ b/debian/unfold.postinst @@ -1,10 +1,15 @@ #!/bin/bash # if this requires a service to be running, add something like this # 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 777 /usr/share/unfold/myslice.sqlite3 -chmod 777 /usr/share/unfold a2dissite default -a2ensite myslice.conf +a2ensite unfold.conf service apache2 restart