git://git.onelab.eu
/
myslice.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ironing out issues during very first install
[myslice.git]
/
debian
/
unfold.postinst
diff --git
a/debian/unfold.postinst
b/debian/unfold.postinst
index
de85dd3
..
f0ecf8c
100644
(file)
--- a/
debian/unfold.postinst
+++ b/
debian/unfold.postinst
@@
-1,10
+1,18
@@
#!/bin/bash
#!/bin/bash
+# tmp - (or?)
+set -x
# if this requires a service to be running, add something like this
# update-rc.d unfold defaults
# 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
/usr/share/unfold/manage.py syncdb
/usr/share/unfold/manage.py migrate
-chmod 777 /usr/share/unfold/myslice.sqlite3
-chmod 777 /usr/share/unfold
-a2dissite default
-a2ensite myslice.conf
+# enable required stuff
+a2enmod ssl
+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
service apache2 restart