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

Update upgrade

This commit is contained in:
Thatoo 2019-07-26 22:33:01 +02:00 committed by GitHub
parent d0cfba00d5
commit 7b0b7eacac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -246,8 +246,8 @@ fi
#=================================================
# Create .well-known redirection for access by federation if it doesn't exist
if [[ $server_name != $domain ]]; then
if [[ ! -e /etc/nginx/conf.d/${server_name}.d/server_name.conf ]]
if [[ $server_name != $domain ]] && [[ ! -e /etc/nginx/conf.d/${server_name}.d/server_name.conf ]]
then
cat > /etc/nginx/conf.d/${server_name}.d/server_name.conf <<EOF
location /.well-known/matrix/ {
return 200 '{"m.server": "$domain", "m.homeserver": "https://$domain"}';
@ -256,7 +256,6 @@ if [[ ! -e /etc/nginx/conf.d/${server_name}.d/server_name.conf ]]
}
EOF
fi
fi
#=================================================
# STANDARD UPGRADE STEPS