1
0

Merge pull request #711 from remogloor/standalone-config

Search in all config files for standalone config
This commit is contained in:
Nicolas Duchon 2020-11-13 15:06:17 +01:00 committed by GitHub
commit a549a129de
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

@ -104,7 +104,7 @@ function add_location_configuration {
function add_standalone_configuration {
local domain="${1:?}"
if grep -q "server_name ${domain};" "/etc/nginx/conf.d/default.conf"; then
if grep -q "server_name ${domain};" /etc/nginx/conf.d/*.conf; then
# If the domain is already present in nginx's conf, use the location configuration.
add_location_configuration "$domain"
else