X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=debian%2Funfold.postinst;h=f307b31975866ef58b51f6bca826b2973b6fc8a7;hb=8a09c0920e21c050199637bd3a7295a7865a264d;hp=de85dd318ea2eca7e632bb01b68d355ca40dbce8;hpb=8c6df7c2e324b1d81dcaf750cc14bcda4da668be;p=myslice.git diff --git a/debian/unfold.postinst b/debian/unfold.postinst index de85dd31..f307b319 100644 --- a/debian/unfold.postinst +++ b/debian/unfold.postinst @@ -1,10 +1,14 @@ #!/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 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 +# enable required stuff +a2enmod ssl a2dissite default -a2ensite myslice.conf +a2ensite unfold.conf service apache2 restart