From 4f3144918d805fe44b2e51c42f58de5a55070c56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20H=C3=B6hn?= Date: Tue, 30 Sep 2014 16:46:53 +0200 Subject: [PATCH] bug fixing --- install_zotero.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/install_zotero.sh b/install_zotero.sh index 23fc0d6..ab286c5 100755 --- a/install_zotero.sh +++ b/install_zotero.sh @@ -243,16 +243,19 @@ echo "#############" echo "download source code for ZSS" git clone git://github.com/sualk/zss.git /srv/zotero/zss +echo "adjust directory rights" +chown www-data:www-data /srv/zotero/storage + echo "adjust path for ZSS.pm" -sed -i "s/path\/to/srv\/zss/" /srv/zotero/zss/zss.psgi +sed -i "s,path/to,srv/zotero/zss," /srv/zotero/zss/zss.psgi echo "adjust properties in ZSS.pm" sed -i "s/yoursecretkey/${AWS_SECRET_KEY}/" /srv/zotero/zss/ZSS.pm -sed -i "s/path\/to/srv\/zss/" /srv/zotero/zss/ZSS.pm +sed -i "s,path/to,srv/zotero/storage," /srv/zotero/zss/ZSS.pm echo "configure uwsgi" echo "uwsgi: - plugin: psgi - psgi: /srv/zotero/zss/zss.psgi" > /etc/uwsgi/apps-available/zss.yaml +\ \ plugin: psgi +\ \ psgi: /srv/zotero/zss/zss.psgi" > /etc/uwsgi/apps-available/zss.yaml ln -s /etc/uwsgi/apps-available/zss.yaml /etc/uwsgi/apps-enabled/zss.yaml /etc/init.d/uwsgi restart