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:
parent
d0cfba00d5
commit
7b0b7eacac
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue