1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mattermost_ynh.git synced 2024-09-03 19:36:29 +02:00

scripts: create and confirm the first user in the same step

This commit is contained in:
Pierre de La Morinerie 2021-11-01 13:23:45 +01:00
parent b3647e3db5
commit f983391fb7

View file

@ -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