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:
parent
1090b1a946
commit
bcb5f88e95
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue