From fa4d1fe8611540413b7280ccb8aef408de08f43e Mon Sep 17 00:00:00 2001 From: abeudin Date: Mon, 6 Jan 2014 09:29:29 +0100 Subject: [PATCH] Update install --- scripts/install | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index eb1a5eb..3618458 100755 --- a/scripts/install +++ b/scripts/install @@ -48,10 +48,16 @@ sudo chmod g+w /var/log/radicale sudo cp ../conf/radicale.ini /etc/uwsgi/apps-available/ sudo ln -s /etc/uwsgi/apps-available/radicale.ini /etc/uwsgi/apps-enabled/ -## Modify Nginx configuration file and copy it to Nginx conf directory +# Modify Nginx configuration file and copy it to Nginx conf directory sudo sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/radicale.conf +# Fix permission +sudo chmod 755 /etc/radicale/ +sudo find /usr/local/radicale/ -type d -exec chmod 2755 {} \; +sudo find /usr/local/radicale/ -type f -exec chmod g+r,o+r {} \; +sudo chmod 644 /etc/radicale/* + ## Reload Nginx and regenerate SSOwat conf sudo service nginx reload sudo service uwsgi restart