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-10-13 15:49:29 +02:00
parent ca0ee4a131
commit 2c8ae84dfe
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

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