From fe6db924cb2977baef68f87231b7b22432adb867 Mon Sep 17 00:00:00 2001 From: Thatoo Date: Tue, 19 Nov 2019 20:41:31 +0100 Subject: [PATCH] Update upgrade --- scripts/upgrade | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 9a7fef2..8249d20 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -217,10 +217,10 @@ if yunohost --output-as plain domain list | grep -q "^$server_name$" then ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/${server_name}.d/server_name.conf cp ../conf/server_name.conf /etc/nginx/conf.d/${server_name}.d/server_name.conf - ynh_store_file_checksum --file="/etc/nginx/conf.d/__SERVER_NAME__.d/server_name.conf" + ynh_replace_string --match_string=__DOMAIN__ --replace_string=$domain --target_file="/etc/nginx/conf.d/${server_name}.d/server_name.conf" + ynh_replace_string --match_string=__PORT__ --replace_string=$synapse_tls_port --target_file="/etc/nginx/conf.d/${server_name}.d/server_name.conf" + ynh_store_file_checksum --file="/etc/nginx/conf.d/${server_name}.d/server_name.conf" fi -ynh_replace_string --match_string=__DOMAIN__ --replace_string=$domain --target_file="/etc/nginx/conf.d/${server_name}.d/server_name.conf" -ynh_replace_string --match_string=__PORT__ --replace_string=$synapse_tls_port --target_file="/etc/nginx/conf.d/${server_name}.d/server_name.conf" #================================================= # MIGRATION 2 : MULTINSTANCE SUPPORT