1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2024-12-25 03:56:31 +00:00

Fix build

This commit is contained in:
Teoh Han Hui 2017-02-06 18:20:54 +08:00
parent dfe7677eb5
commit 065dd7f1ea
No known key found for this signature in database
GPG Key ID: 729783C96A30C9B8
2 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@ fi
export RESOLVERS=$(awk '$1 == "nameserver" {print $2}' ORS=' ' /etc/resolv.conf | sed 's/ *$//g')
if [ "x$RESOLVERS" = "x" ]; then
echo "Warning: unable to determine DNS resolvers for nginx" >&2
unset RESOLVERS
fi
# If the user has run the default command and the socket doesn't exist, fail

View File

@ -58,7 +58,7 @@ log_format vhost '$host $remote_addr - $remote_user [$time_local] '
access_log off;
{{ if ne $.Env.RESOLVERS "" }}
{{ if $.Env.RESOLVERS }}
resolver {{ $.Env.RESOLVERS }};
{{ end }}