X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=debian%2Funfold.postinst;h=c5cd80dabf720ad3f66b1fb75eb30bed617aaec4;hb=253c727bf8b4f874ae9488a1393acc5bcbbeae37;hp=f3f4435851e11067459ccf3bba9b893b422b581f;hpb=3fe78396920b80ebd37ba820503ee8762fd6f2a4;p=unfold.git diff --git a/debian/unfold.postinst b/debian/unfold.postinst index f3f44358..c5cd80da 100644 --- a/debian/unfold.postinst +++ b/debian/unfold.postinst @@ -1,4 +1,6 @@ #!/bin/bash +# tmp - (or?) +set -x # if this requires a service to be running, add something like this # update-rc.d unfold defaults [ -d /var/unfold ] || mkdir /var/unfold @@ -7,6 +9,11 @@ chmod -R 700 /var/unfold # upgrading end /usr/share/unfold/manage.py syncdb /usr/share/unfold/manage.py migrate -a2dissite default +# 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