From fe2d6f93455a33f52aec410caff13a79365442d6 Mon Sep 17 00:00:00 2001 From: Thatoo Date: Mon, 25 Nov 2019 23:38:01 +0100 Subject: [PATCH] Update upgrade --- scripts/upgrade | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 8249d20..1839deb 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -215,11 +215,11 @@ ynh_store_file_checksum --file="/etc/matrix-$app/log.yaml" # Create .well-known redirection for access by federation if it doesn't exist 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_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" + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/${server_name}.d/${app}_server_name.conf + cp ../conf/server_name.conf /etc/nginx/conf.d/${server_name}.d/${app}_server_name.conf + ynh_replace_string --match_string=__DOMAIN__ --replace_string=$domain --target_file="/etc/nginx/conf.d/${server_name}.d/${app}_server_name.conf" + ynh_replace_string --match_string=__PORT__ --replace_string=$synapse_tls_port --target_file="/etc/nginx/conf.d/${server_name}.d/${app}_server_name.conf" + ynh_store_file_checksum --file="/etc/nginx/conf.d/${server_name}.d/${app}_server_name.conf" fi #=================================================