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:
parent
ca0ee4a131
commit
2c8ae84dfe
1 changed files with 18 additions and 0 deletions
|
@ -163,6 +163,24 @@ ynh_script_progression --message="Configuring a systemd service..." --weight=2
|
||||||
# Create a dedicated systemd config
|
# Create a dedicated systemd config
|
||||||
ynh_add_systemd_config
|
ynh_add_systemd_config
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# INSTALL MMCTL
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
# Install Go if needed
|
||||||
|
if ! command -v /usr/local/go/bin/go &> /dev/null
|
||||||
|
then
|
||||||
|
ynh_script_progression --message="Installing Go dependency... (this will take some time)" --weight=3
|
||||||
|
ynh_setup_source --source_id="go" --dest_dir="/usr/local/"
|
||||||
|
fi
|
||||||
|
|
||||||
|
export PATH=$PATH:/usr/local/go/bin
|
||||||
|
env_path=$PATH
|
||||||
|
|
||||||
|
go get -u github.com/mattermost/mmctl
|
||||||
|
|
||||||
|
source <(mmctl completion bash)
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CREATE ADMIN AND FIRST TEAM
|
# CREATE ADMIN AND FIRST TEAM
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue