turn off default site on jessie
[myslice.git] / debian / unfold.postinst
1 #!/bin/bash
2 # tmp - (or?)
3 set -x
4 # if this requires a service to be running, add something like this
5 # update-rc.d unfold defaults
6 [ -d /var/unfold ] || mkdir /var/unfold
7 chown -R www-data.www-data /var/unfold
8 chmod -R 700 /var/unfold
9 # upgrading end
10 /usr/share/unfold/manage.py syncdb
11 /usr/share/unfold/manage.py migrate
12 # enable required stuff
13 a2enmod ssl
14 # name seems to depend on the debian distro
15 a2dissite default || a2dissite 000-default || :
16 a2ensite unfold.conf
17 # create a server-side cert/key and passes on gids to rehash them
18 unfold-init-ssl.sh
19 service apache2 restart