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

install: configure SiteURL

This is a mandatory variable since Mattermost 3.8.

See https://docs.mattermost.com/administration/config-settings.html#site-url

Fix #50
This commit is contained in:
Pierre de La Morinerie 2017-10-12 12:53:55 +05:30
parent 1090b1a946
commit bcb5f88e95

View file

@ -115,6 +115,8 @@ sudo rm -f "$archive_filename"
# EDIT MATTERMOST CONFIG
#=================================================
# Configure Service Settings
sudo sed -i "s|\"SiteURL\": \"\"|\"SiteURL\": \"https://${domain}${path_url}\"|g" $final_path/config/config.json
# Configure the database connection
db_connection_url="${db_user}:${db_password}@tcp(127.0.0.1:3306)/${db_name}?charset=utf8mb4,utf8"
sudo sed -i "s|\"DataSource\": \".*\"|\"DataSource\": \"${db_connection_url}\"|g" $final_path/config/config.json