Skip to content
Snippets Groups Projects
Commit 5673d692 authored by Eugene Venter's avatar Eugene Venter Committed by Konstantin Pavlov
Browse files

fix unbound variable issue in local resolver entrypoint script

parent 4ac589e5
No related merge requests found
...@@ -6,6 +6,6 @@ set -eu ...@@ -6,6 +6,6 @@ set -eu
LC_ALL=C LC_ALL=C
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
if [ "${NGINX_ENTRYPOINT_LOCAL_RESOLVERS}" ]; then [ "${NGINX_ENTRYPOINT_LOCAL_RESOLVERS:-}" ] || return 0
export NGINX_LOCAL_RESOLVERS=$(awk 'BEGIN{ORS=" "} $1=="nameserver" {print $2}' /etc/resolv.conf) export NGINX_LOCAL_RESOLVERS=$(awk 'BEGIN{ORS=" "} $1=="nameserver" {print $2}' /etc/resolv.conf)
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment