From 9d1ab11dd47e73e64d0812dbe00b6787b6a7eece Mon Sep 17 00:00:00 2001 From: abeudin Date: Thu, 29 May 2014 13:43:57 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 644dc0b..51b00a1 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -5,8 +5,8 @@ sudo apt-get install -y python-pip python-virtualenv python-dev libldap2-dev lib if [ -d /usr/local/radicale ]; then - mdkir -p /opt/yunohost - mv /usr/local/radicale /opt/yunohost/ + sudo mdkir -p /opt/yunohost + sudo mv /usr/local/radicale /opt/yunohost/ fi # Set permissions to searx directory @@ -31,7 +31,7 @@ sudo chmod 755 /etc/radicale/ 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/* -chown -R radicale $final_path +sudo chown -R radicale $final_path sudo touch /var/log/radicale sudo chgrp radicale /var/log/radicale sudo chmod g+w /var/log/radicale