From f5c3ff7d10ec240490e189c7468662fe93584246 Mon Sep 17 00:00:00 2001 From: abeudin Date: Thu, 29 May 2014 13:14:22 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index f3851ef..383185c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -9,6 +9,10 @@ then mv /usr/local/radicale /opt/yunohost/ fi +# Set permissions to searx directory +sudo useradd radicale -d /opt/yunohost/radicale +sudo chown radicale:radicale -R /opt/yunohost/radicale + # Upgrade pip packages sudo bash -c "source /opt/yunohost/radicale/bin/activate && pip install radicale python-ldap --upgrade" @@ -24,8 +28,8 @@ sudo cp ../conf/radicale.wsgi $final_path # 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 find /opt/yunohost/radicale/ -type d -exec chmod 2755 {} \; +sudo find /opt/yunohost/radicale/ -type f -exec chmod g+r,o+r {} \; sudo chmod 644 /etc/radicale/* sudo yunohost app setting radicale skipped_uris -v "/"