X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=debian%2Funfold.postinst;h=dd5c68051c3324067dbab5b2ed29264e2ee28429;hb=a52c3773de8611def256d97dd699ba09d390b8fd;hp=6da1aee1fd70d65b8520a09ed94c0721cf9d7b33;hpb=cec70f20d09995a8b0ebc38d458f48b5d74a9e22;p=myslice.git diff --git a/debian/unfold.postinst b/debian/unfold.postinst index 6da1aee1..dd5c6805 100644 --- a/debian/unfold.postinst +++ b/debian/unfold.postinst @@ -1,5 +1,15 @@ #!/bin/bash # if this requires a service to be running, add something like this # update-rc.d unfold defaults - -[ -f /etc/apache2/apache2.conf ] && echo "WSGIScriptAlias / /usr/share/unfold/apache/myslice.wsgi" >> /etc/apache2/apache2.conf +[ -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 +a2ensite unfold.conf +service apache2 restart