X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=debian%2Funfold.postinst;h=c5cd80dabf720ad3f66b1fb75eb30bed617aaec4;hb=253c727bf8b4f874ae9488a1393acc5bcbbeae37;hp=c762a570b23db926caddc8e434dc4dd1acf4b794;hpb=c829c67fd8c775bdee9a39f7d2534374173f7f2a;p=myslice.git diff --git a/debian/unfold.postinst b/debian/unfold.postinst index c762a570..c5cd80da 100644 --- a/debian/unfold.postinst +++ b/debian/unfold.postinst @@ -1,6 +1,19 @@ #!/bin/bash +# tmp - (or?) +set -x # 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 end +/usr/share/unfold/manage.py syncdb +/usr/share/unfold/manage.py migrate +# enable required stuff +a2enmod ssl +# name seems to depend on the debian distro +a2dissite default || a2dissite 000-default || : +a2ensite unfold.conf +# create a server-side cert/key and passes on gids to rehash them +unfold-init-ssl.sh service apache2 restart