From 5eae32b5d62dcecb23ae1630ea8a4d0cec729746 Mon Sep 17 00:00:00 2001 From: abeudin Date: Mon, 6 Jan 2014 09:38:16 +0100 Subject: [PATCH] Update upgrade --- scripts/upgrade | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 8bbfb6b..d3b1ee4 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -1,6 +1,12 @@ #!/bin/bash -#sudo service uwsgi stop -#sudo killall uwsgi -#sudo service uwsgi start -#sudo service nginx reload +# 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/* + +sudo service uwsgi stop +sudo killall uwsgi +sudo service uwsgi start +sudo service nginx reload