From 0aa6af1f2b72ce4f0ca0db50ecb84b6d91ed0098 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 29 Mar 2022 01:30:47 +0200 Subject: [PATCH] Update restore --- scripts/restore | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/restore b/scripts/restore index 8218c2d..f53f8b2 100644 --- a/scripts/restore +++ b/scripts/restore @@ -45,6 +45,14 @@ ynh_script_progression --message="Restoring the NGINX web server configuration.. ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" +#================================================= +# RECREATE THE DEDICATED USER +#================================================= +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" + #================================================= # RESTORE THE APP MAIN DIR #=================================================