From f983391fb790e5dc04cf716ed689d04f57565e94 Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Mon, 1 Nov 2021 13:23:45 +0100 Subject: [PATCH] scripts: create and confirm the first user in the same step --- scripts/install | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 68099e0..be1b366 100644 --- a/scripts/install +++ b/scripts/install @@ -190,8 +190,7 @@ pushd "$final_path" export MMCTL_LOCAL=true export MMCTL_LOCAL_SOCKET_PATH="$local_socket_path" - ynh_exec_warn_less sudo --preserve-env -u $app bin/mmctl user create --username "$admin" --email "$email" --password "$password" --locale "$language" --system-admin - ynh_exec_warn_less sudo --preserve-env -u $app bin/mmctl user verify "$admin" + ynh_exec_warn_less sudo --preserve-env -u $app bin/mmctl user create --username "$admin" --email "$email" --password "$password" --locale "$language" --email-verified --system-admin ynh_exec_warn_less sudo --preserve-env -u $app bin/mmctl team create --name "$team_name" --display_name "$team_display_name" --email "$email" ynh_exec_warn_less sudo --preserve-env -u $app bin/mmctl team add "$team_name" "$admin" popd