Skip to content
Snippets Groups Projects
Commit 70aaec49 authored by Bob Mottram's avatar Bob Mottram
Browse files

Ensure that matrix domain name is correct after upgrades

parent e0314c71
No related branches found
No related tags found
No related merge requests found
......@@ -202,6 +202,11 @@ function upgrade_riot {
read_config_param ONION_ONLY
riot_set_default_homeserver
read_config_param MATRIX_DOMAIN_NAME
riot_config_file="/var/www/${RIOT_DOMAIN_NAME}/htdocs/config.${RIOT_DOMAIN_NAME}.json"
sed -i "s|\"default_hs_url\":.*|\"default_hs_url\": \"https://${MATRIX_DOMAIN_NAME}\",|g" "$riot_config_file"
sed -i "s|\"default_is_url\":.*|\"default_is_url\": \"https://${MATRIX_DOMAIN_NAME}\",|g" "$riot_config_file"
systemctl restart nginx
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment