From 832a6f1292018c44cb9be29c160e6390d86a6cb6 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 10 Sep 2021 19:32:26 +0200 Subject: [PATCH] Update install --- scripts/install | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/install b/scripts/install index fe2d451..b4f3abc 100755 --- a/scripts/install +++ b/scripts/install @@ -138,15 +138,10 @@ ynh_script_progression --message="Creating a data directory..." --weight=1 # Define app's data directory datadir="/home/yunohost.app/$app/data" -ynh_app_setting_set --app=$app --key=datadir --value=$datadir # Create app folders mkdir -p "$datadir" -chmod 750 "$datadir" -chmod -R o-rwx "$datadir" -chown -R $app:www-data "$datadir" - #================================================= # INSTALL NEXTCLOUD #================================================= @@ -312,6 +307,10 @@ ynh_multimedia_addaccess $app # SECURE FILES AND DIRECTORIES #================================================= +chmod 750 "$datadir" +chmod -R o-rwx "$datadir" +chown -R $app:www-data "$datadir" + # # Fix app ownerships & permissions # chown -R $app: "$final_path" "$datadir" # find $final_path/ -type f -print0 | xargs -0 chmod 0644