1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/synapse_ynh.git synced 2024-09-03 20:26:38 +02:00

move .well-known redirection to config section

move #Create .well-known redirection to the end of config section and Indentation
This commit is contained in:
Thatoo 2019-11-11 12:24:57 +01:00 committed by GitHub
parent 4aae628bbe
commit 3bec1893a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
#=================================================