From b7a56c7d7dc2cf54a8329c0a93e56cb3b01b1763 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 19 Dec 2021 09:27:46 +0100 Subject: [PATCH] Update restore --- scripts/restore | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/scripts/restore b/scripts/restore index a1747dc..bb723af 100755 --- a/scripts/restore +++ b/scripts/restore @@ -58,14 +58,9 @@ ynh_script_progression --message="Restoring the app main directory..." ynh_restore_file --origin_path="$final_path" -#================================================= -# RESTORE USER RIGHTS -#================================================= -ynh_script_progression --message="Restoring user rights..." - -# Restore permissions on app files -chown -R $app:www-data $final_path -chmod 775 $final_path +chmod 750 "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:www-data "$final_path" #================================================= # RESTORE THE PHP-FPM CONFIGURATION