From 4cea4d86abecb6eebfb8bf2da7ec71780ed8546e Mon Sep 17 00:00:00 2001 From: Nouts Date: Wed, 31 Jul 2019 19:32:38 +0200 Subject: [PATCH] add server_name, try fix upgrade/restore --- scripts/restore | 1 + scripts/upgrade | 1 + 2 files changed, 2 insertions(+) diff --git a/scripts/restore b/scripts/restore index 0144f83..1ffef46 100644 --- a/scripts/restore +++ b/scripts/restore @@ -106,6 +106,7 @@ cp ../settings/conf/turnserver.conf "$coturn_config_path" ynh_replace_string __APP__ $app "$coturn_config_path" ynh_replace_string __TURNPWD__ $turnserver_pwd "$coturn_config_path" ynh_replace_string __DOMAIN__ $domain "$coturn_config_path" + ynh_replace_string __SERVER_NAME__ $server_name "$homeserver_config_path" ynh_replace_string __TLS_PORT__ $turnserver_tls_port "$coturn_config_path" ynh_replace_string __TLS_ALT_PORT__ $turnserver_alt_tls_port "$coturn_config_path" ynh_replace_string __CLI_PORT__ $cli_port "$coturn_config_path" diff --git a/scripts/upgrade b/scripts/upgrade index 0d9e5e2..182d2cb 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -158,6 +158,7 @@ cp ../conf/log.yaml /etc/matrix-$app/log.yaml ynh_replace_string __APP__ $app "$homeserver_config_path" ynh_replace_string __DOMAIN__ $domain "$homeserver_config_path" +ynh_replace_string __SERVER_NAME__ $server_name "$homeserver_config_path" ynh_replace_string __SYNAPSE_DB_USER__ $synapse_db_user "$homeserver_config_path" ynh_replace_string __SYNAPSE_DB_PWD__ $synapse_db_pwd "$homeserver_config_path" ynh_replace_string __PORT__ $port "$homeserver_config_path"