From a65557e3ac53d6b052249f6f5e25f299dacafa2f Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 2 Jul 2021 21:12:08 +0200 Subject: [PATCH] Update restore --- scripts/restore | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/restore b/scripts/restore index adba9a8..f097299 100644 --- a/scripts/restore +++ b/scripts/restore @@ -65,6 +65,10 @@ ynh_script_progression --message="Restoring $app main directory..." ynh_restore_file --origin_path="$final_path" +chmod 750 "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:www-data "$final_path" + #================================================= # RESTORE THE CONFIG #================================================= @@ -72,9 +76,9 @@ ynh_script_progression --message="Restoring the config path..." ynh_restore_file --origin_path="$config_path" -chmod 750 "$final_path" -chmod -R o-rwx "$final_path" -chown -R $app:www-data "$final_path" +chmod 750 "$config_path" +chmod -R o-rwx "$config_path" +chown -R $app:www-data "$config_path" #================================================= # SPECIFIC RESTORATION