X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=debian%2Funfold.postinst;h=de85dd318ea2eca7e632bb01b68d355ca40dbce8;hb=d384e4b10bf9ba67f610bef72cf0e5b2dd747baf;hp=6da1aee1fd70d65b8520a09ed94c0721cf9d7b33;hpb=cec70f20d09995a8b0ebc38d458f48b5d74a9e22;p=myslice.git diff --git a/debian/unfold.postinst b/debian/unfold.postinst index 6da1aee1..de85dd31 100644 --- a/debian/unfold.postinst +++ b/debian/unfold.postinst @@ -1,5 +1,10 @@ #!/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 +/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 +service apache2 restart