Skip to content

Commit 2d5c9c4

Browse files
committed
If user sets USE_COREDNS honour their values even if it breaks things
1 parent c96c8d8 commit 2d5c9c4

File tree

2 files changed

+2
-2
lines changed
  • root/etc/s6-overlay/s6-rc.d
    • init-wireguard-confs
    • svc-coredns

2 files changed

+2
-2
lines changed

root/etc/s6-overlay/s6-rc.d/init-wireguard-confs/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ else
184184
echo "**** No client conf found. Provide your own client conf as \"/config/wg0.conf\" and restart the container. ****"
185185
sleep infinity
186186
fi
187-
printf %s "${USE_COREDNS:-false}" > /run/s6/container_environment/USE_COREDNS
187+
printf %s "${USE_COREDNS,,:-false}" > /run/s6/container_environment/USE_COREDNS
188188
fi
189189

190190
# set up CoreDNS

root/etc/s6-overlay/s6-rc.d/svc-coredns/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/with-contenv bash
22
# shellcheck shell=bash
33

4-
if netstat -apn | grep -q ":53 "; then
4+
if netstat -apn | grep -q ":53 " && [[ -z "${USE_COREDNS}" ]]; then
55
USE_COREDNS="false"
66
fi
77

0 commit comments

Comments
 (0)