diff --git a/scripts/upgrade b/scripts/upgrade index a8155a4..8459550 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -79,9 +79,8 @@ if [[ $migration_process -eq 1 ]]; then final_path="/var/www/$app" # Replace the user - pkill -u $old_app - ynh_system_user_delete $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" --home_dir="$final_path" fi #=================================================