We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9192e52 commit 7f09d29Copy full SHA for 7f09d29
1 file changed
config-ui/nginx.sh
@@ -24,7 +24,7 @@ if [ -n "$ADMIN_USER" ] && [ -n "$ADMIN_PASS" ]; then
24
auth_basic_user_file /etc/nginx/.htpasswd;
25
'
26
fi
27
-export DNS=$(grep nameserver /etc/resolv.conf | awk '{print $2}')
+export DNS=$(awk 'BEGIN{ORS=" "} $1=="nameserver" {if ($2 ~ ":") {print "["$2"]"} else {print $2}}' /etc/resolv.conf)
28
export DNS_VALID=${DNS_VALID:-300s}
29
export DEVLAKE_ENDPOINT_PROTO=${DEVLAKE_ENDPOINT_PROTO:-http}
30
export GRAFANA_ENDPOINT_PROTO=${GRAFANA_ENDPOINT_PROTO:-http}
0 commit comments