From d8e22482abcb4844047a7b0633bc85cfa840d9f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Lebleu?= Date: Sat, 2 Apr 2016 12:02:28 +0200 Subject: [PATCH] [fix] Use sudo to fix folders and files permissions --- scripts/install | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index bd95f0c..0817acd 100755 --- a/scripts/install +++ b/scripts/install @@ -120,10 +120,10 @@ done # Fix app folders permissions sudo chown -R $app: "$DESTDIR" "$DATADIR" sudo chmod 755 /home/yunohost.app -find ${DESTDIR}/ -type f -print0 | xargs -0 sudo chmod 0644 -find ${DESTDIR}/ -type d -print0 | xargs -0 sudo chmod 0755 -find ${DATADIR}/ -type f -print0 | xargs -0 sudo chmod 0640 -find ${DATADIR}/ -type d -print0 | xargs -0 sudo chmod 0750 +sudo find ${DESTDIR}/ -type f -print0 | sudo xargs -0 chmod 0644 +sudo find ${DESTDIR}/ -type d -print0 | sudo xargs -0 chmod 0755 +sudo find ${DATADIR}/ -type f -print0 | sudo xargs -0 chmod 0640 +sudo find ${DATADIR}/ -type d -print0 | sudo xargs -0 chmod 0750 # Set SSOwat rules ynh_app_setting_set $app unprotected_uris "/"