diff --git a/scripts/upgrade b/scripts/upgrade index c413dab..a8155a4 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -79,7 +79,7 @@ if [[ $migration_process -eq 1 ]]; then final_path="/var/www/$app" # Replace the user - pkill -u someuser + pkill -u $old_app ynh_system_user_delete $old_app ynh_system_user_create --username=$app --home_dir="$final_path" fi