diff --git a/scripts/upgrade b/scripts/upgrade index b960e9e..84633aa 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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 <