Skip to content

Commit 065dd7f

Browse files
committed
Fix build
1 parent dfe7677 commit 065dd7f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docker-entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ fi
2222
export RESOLVERS=$(awk '$1 == "nameserver" {print $2}' ORS=' ' /etc/resolv.conf | sed 's/ *$//g')
2323
if [ "x$RESOLVERS" = "x" ]; then
2424
echo "Warning: unable to determine DNS resolvers for nginx" >&2
25+
unset RESOLVERS
2526
fi
2627

2728
# If the user has run the default command and the socket doesn't exist, fail

nginx.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ log_format vhost '$host $remote_addr - $remote_user [$time_local] '
5858

5959
access_log off;
6060

61-
{{ if ne $.Env.RESOLVERS "" }}
61+
{{ if $.Env.RESOLVERS }}
6262
resolver {{ $.Env.RESOLVERS }};
6363
{{ end }}
6464

0 commit comments

Comments
 (0)