X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=blobdiff_plain;f=debian%2Funfold.postinst;h=f0ecf8c7cd19860b9b17e94fbb2173d23b0d0241;hp=f307b31975866ef58b51f6bca826b2973b6fc8a7;hb=a11e7b0d7951b328f0f07ffedd679128d7bb8586;hpb=8a09c0920e21c050199637bd3a7295a7865a264d diff --git a/debian/unfold.postinst b/debian/unfold.postinst index f307b319..f0ecf8c7 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 @@ -9,6 +11,8 @@ chmod -R 700 /var/unfold /usr/share/unfold/manage.py migrate # enable required stuff a2enmod ssl -a2dissite default +a2dissite default || : a2ensite unfold.conf +# create a server-side cert/key and passes on gids to rehash them +unfold-init-ssl.sh service apache2 restart