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

Update install

This commit is contained in:
ericgaspar 2021-01-10 23:33:26 +01:00
parent fcb879ca0d
commit b4f4a8b1d1
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -196,10 +196,10 @@ admin_username=$(cut -d @ -f 1 <<< "$admin_email")
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"
sudo -u mattermost bin/mattermost user create --username "$admin_username" --email "$admin_email" --password "$admin_password" --locale "$language" --system_admin
sudo -u mattermost bin/mattermost user verify "$admin_username"
sudo -u mattermost bin/mattermost team create --name "$team_name" --display_name "$team_display_name" --email "$admin_email"
sudo -u mattermost bin/mattermost team add "$team_name" "$admin_username"
ynh_exec_warn_less ynh_exec_as $app bin/mattermost user create --username "$admin_username" --email "$admin_email" --password "$admin_password" --locale "$language" --system_admin
ynh_exec_warn_less ynh_exec_as $app bin/mattermost user verify "$admin_username"
ynh_exec_warn_less ynh_exec_as $app bin/mattermost team create --name "$team_name" --display_name "$team_display_name" --email "$admin_email"
ynh_exec_warn_less ynh_exec_as $app bin/mattermost team add "$team_name" "$admin_username"
popd
#=================================================