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
refine packaging one step further
[myslice.git]
/
debian
/
unfold.postinst
diff --git
a/debian/unfold.postinst
b/debian/unfold.postinst
index
c762a57
..
77a479e
100644
(file)
--- a/
debian/unfold.postinst
+++ b/
debian/unfold.postinst
@@
-1,6
+1,11
@@
#!/bin/bash
# if this requires a service to be running, add something like this
# update-rc.d unfold defaults
#!/bin/bash
# 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
+/usr/share/unfold/manage.py syncdb
+/usr/share/unfold/manage.py migrate
+chmod 700 /var/unfold/unfold.sqlite3
+a2dissite default
+a2ensite unfold.conf
service apache2 restart
service apache2 restart