From: Thierry Parmentelat <thierry.parmentelat@inria.fr>
Date: Wed, 27 Nov 2013 21:20:11 +0000 (+0100)
Subject: packaging tweaks
X-Git-Tag: myslice-0.3-0~103^2~3^2~3
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=77e560559803ca62833a584d13dd3f85851acf5a;p=unfold.git

packaging tweaks
---

diff --git a/apache/unfold.conf b/apache/unfold.conf
index 61bb49f9..ff3de7f0 100644
--- a/apache/unfold.conf
+++ b/apache/unfold.conf
@@ -1,6 +1,6 @@
 <VirtualHost *:80>
 	WSGIDaemonProcess unfold processes=2 threads=25
-	WSGIProcessGroup unfold
+	WSGIProcessGroup  unfold
 	CustomLog ${APACHE_LOG_DIR}/unfold-access.log common
 	ErrorLog ${APACHE_LOG_DIR}/unfold-error.log
         WSGIScriptAlias / /usr/share/unfold/apache/unfold.wsgi
@@ -25,8 +25,8 @@
 # this to be optional on that port
 
 <VirtualHost *:443>
-	WSGIDaemonProcess myslice-ssl processes=2 threads=25
-	WSGIProcessGroup myslice-ssl
+	WSGIDaemonProcess unfold-ssl processes=2 threads=25
+	WSGIProcessGroup  unfold-ssl
 	CustomLog ${APACHE_LOG_DIR}/myslice-ssl-access.log common
 	ErrorLog ${APACHE_LOG_DIR}/myslice-ssl-error.log
         WSGIScriptAlias / /usr/share/unfold/apache/unfold.wsgi
diff --git a/debian/unfold.postinst b/debian/unfold.postinst
index 77a479e3..2fe651c6 100644
--- a/debian/unfold.postinst
+++ b/debian/unfold.postinst
@@ -3,9 +3,9 @@
 # update-rc.d unfold defaults
 [ -d /var/unfold ] || mkdir /var/unfold
 chown -R www-data.www-data /var/unfold
+chmod -R 700 /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