mirror of
https://github.com/YunoHost-Apps/mattermost_ynh.git
synced 2024-09-03 19:36:29 +02:00
Replace invokations of bin/platform to bin/mattermost
This commit is contained in:
parent
9669dd65c5
commit
9f19e0c550
2 changed files with 5 additions and 5 deletions
|
@ -9,7 +9,7 @@ Requires=mysql.service
|
|||
|
||||
[Service]
|
||||
Type=notify
|
||||
ExecStart=__FINALPATH__/bin/platform
|
||||
ExecStart=__FINALPATH__/bin/mattermost
|
||||
TimeoutStartSec=3600
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
|
|
|
@ -206,10 +206,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)
|
||||
|
||||
cd "$final_path/bin"
|
||||
sudo ./platform user create --username "$admin_username" --email "$admin_email" --password "$admin_password" --locale "$admin_locale" --system_admin
|
||||
sudo ./platform user verify "$admin_username"
|
||||
sudo ./platform team create --name "$team_name" --display_name "$team_display_name" --email "$admin_email"
|
||||
sudo ./platform team add "$team_name" "$admin_username"
|
||||
sudo ./mattermost user create --username "$admin_username" --email "$admin_email" --password "$admin_password" --locale "$admin_locale" --system_admin
|
||||
sudo ./mattermost user verify "$admin_username"
|
||||
sudo ./mattermost team create --name "$team_name" --display_name "$team_display_name" --email "$admin_email"
|
||||
sudo ./mattermost team add "$team_name" "$admin_username"
|
||||
|
||||
ynh_app_setting_set "$app" admin_email "$admin_email"
|
||||
ynh_app_setting_set "$app" admin_locale "$admin_locale"
|
||||
|
|
Loading…
Add table
Reference in a new issue