From b302d7f444e8d7697fd6cecec1bc1849c01eeb7e Mon Sep 17 00:00:00 2001 From: Robles Rodolphe Date: Tue, 24 Jan 2023 08:36:52 +0100 Subject: [PATCH] try fix --- scripts/upgrade | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 8459550..194e02e 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -76,11 +76,12 @@ fi ynh_handle_app_migration --migration_id=garradin --migration_list=garradin_migrations if [[ $migration_process -eq 1 ]]; then - final_path="/var/www/$app" + final_path="/var/www/$app" # Replace the user - ynh_system_user_delete --username="$old_app" - ynh_system_user_create --username="$app" --home_dir="$final_path" + ynh_system_user_delete --username=$old_app + ynh_system_user_create --username=$app || \ + ynh_die --message "Unable to create $app system account" fi #=================================================