diff --git a/scripts/upgrade b/scripts/upgrade index e8191fc..da5340f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -81,7 +81,7 @@ if [[ $migration_process -eq 1 ]]; then db_user=$app # Replace the user - ynh_system_user_delete $old_app + ynh_system_user_delete --username="$old_app" test getent passwd "$app" &>/dev/null || \ useradd -d "$datadir" --system --user-group "$app" --shell /bin/bash || \ ynh_die --message "Unable to create $app system account"