Update packaging
[myslice.git] / debian / unfold.postinst
index c762a57..de85dd3 100644 (file)
@@ -1,6 +1,10 @@
 #!/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
+/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
 service apache2 restart