From 9d422b8d9e01a443d2a5f21255a4111b433db5f7 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 12 Sep 2021 15:29:21 +0200 Subject: [PATCH] Update restore --- scripts/restore | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/restore b/scripts/restore index 551d495..cb2f890 100755 --- a/scripts/restore +++ b/scripts/restore @@ -61,10 +61,6 @@ ynh_script_progression --message="Recreating the dedicated system user..." # Create the dedicated user (if not existing) ynh_system_user_create --username=$app --home_dir="$final_path" -chmod 750 "$final_path" -chmod -R o-rwx "$final_path" -chown -R $app:www-data "$final_path" - #================================================= # RESTORE THE APP MAIN DIR #================================================= @@ -72,6 +68,10 @@ ynh_script_progression --message="Restoring the 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 MYSQL DATABASE #=================================================