From 37c3d272fb578dbdfd4e3a86e71db86b8735fcc1 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 13 Oct 2021 15:00:09 +0200 Subject: [PATCH] Update install --- scripts/install | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 2ef3c9b..a5e1fa7 100644 --- a/scripts/install +++ b/scripts/install @@ -170,10 +170,10 @@ ynh_add_systemd_config team_name=$(echo "$team_display_name" | iconv -f utf8 -t ascii//TRANSLIT//IGNORE | sed -e 's/[^[:alnum:]]/-/g' | tr -s '-' | tr A-Z a-z) pushd "$final_path" - ynh_exec_warn_less ynh_exec_as $app bin/mattermost user create --username "$admin" --email "$email" --password "$password" --locale "$language" --system_admin - ynh_exec_warn_less ynh_exec_as $app bin/mattermost user verify "$admin" - ynh_exec_warn_less ynh_exec_as $app bin/mattermost team create --name "$team_name" --display_name "$team_display_name" --email "$email" - ynh_exec_warn_less ynh_exec_as $app bin/mattermost team add "$team_name" "$admin" + ynh_exec_warn_less ynh_exec_as $app mmctl user create --username "$admin" --email "$email" --password "$password" --locale "$language" --system_admin + ynh_exec_warn_less ynh_exec_as $app mmctl user verify "$admin" + ynh_exec_warn_less ynh_exec_as $app mmctl team create --name "$team_name" --display_name "$team_display_name" --email "$email" + ynh_exec_warn_less ynh_exec_as $app mmctl team add "$team_name" "$admin" popd #=================================================