From 3bec1893a26eeb56b78a844f92122d6f0f1aa5ec Mon Sep 17 00:00:00 2001 From: Thatoo Date: Mon, 11 Nov 2019 12:24:57 +0100 Subject: [PATCH] move .well-known redirection to config section move #Create .well-known redirection to the end of config section and Indentation --- scripts/upgrade | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 70653cd..b22ae81 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -212,6 +212,12 @@ fi ynh_store_file_checksum --file="$homeserver_config_path" 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 + cp ../conf/server_name.conf /etc/nginx/conf.d/${server_name}.d/server_name.conf +fi + #================================================= # MIGRATION 2 : MULTINSTANCE SUPPORT #================================================= @@ -282,12 +288,6 @@ fi # MIGRATION 5 : CREATE A .well-known FILE #================================================= -# 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 -cp ../conf/server_name.conf /etc/nginx/conf.d/${server_name}.d/server_name.conf -fi - #================================================= # STANDARD UPGRADE STEPS #=================================================