If user sets USE_COREDNS honour their values even if it breaks things

pull/279/head
TheSpad 10 months ago
parent c96c8d8eb9
commit 2d5c9c44f8
No known key found for this signature in database
GPG Key ID: 08F06191F4587860

@ -184,7 +184,7 @@ else
echo "**** No client conf found. Provide your own client conf as \"/config/wg0.conf\" and restart the container. ****"
sleep infinity
fi
printf %s "${USE_COREDNS:-false}" > /run/s6/container_environment/USE_COREDNS
printf %s "${USE_COREDNS,,:-false}" > /run/s6/container_environment/USE_COREDNS
fi
# set up CoreDNS

@ -1,7 +1,7 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash
if netstat -apn | grep -q ":53 "; then
if netstat -apn | grep -q ":53 " && [[ -z "${USE_COREDNS}" ]]; then
USE_COREDNS="false"
fi

Loading…
Cancel
Save