From 85c756b161766ce7961c04ee2970d023e9f79e14 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 30 May 2020 16:10:21 +0200 Subject: [PATCH] Update restore --- scripts/restore | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/restore b/scripts/restore index 96123f8..720a610 100644 --- a/scripts/restore +++ b/scripts/restore @@ -65,14 +65,6 @@ ynh_script_progression --message="Recreating the dedicated system user..." # Create the dedicated user (if not existing) ynh_system_user_create --username=$app -#================================================= -# RESTORE USER RIGHTS -#================================================= - -# Restore permissions to app files -chown -R $app: $final_path -chown -R $app: $config_path - #================================================= # SPECIFIC RESTORATION #================================================= @@ -93,6 +85,14 @@ ynh_script_progression --message="Restoring the config path..." ynh_restore_file --origin_path=$config_path +#================================================= +# RESTORE USER RIGHTS +#================================================= + +# Restore permissions to app files +chown -R $app: $final_path +chown -R $app: $config_path + #================================================= # RESTORE SYSTEMD #=================================================