diff options
Diffstat (limited to 'bin/ncp/NETWORKING/dnsmasq.sh')
-rw-r--r-- | bin/ncp/NETWORKING/dnsmasq.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/ncp/NETWORKING/dnsmasq.sh b/bin/ncp/NETWORKING/dnsmasq.sh index 587dc4e3..368403e9 100644 --- a/bin/ncp/NETWORKING/dnsmasq.sh +++ b/bin/ncp/NETWORKING/dnsmasq.sh @@ -13,7 +13,15 @@ install() { apt-get update apt-get install --no-install-recommends -y dnsmasq + rc=0 + service dnsmasq status > /dev/null 2>&1 || rc=$? + [[ $rc -eq 3 ]] && { + echo "Applying workaround for dnsmasq bug (compare issue #1446)" + service systemd-resolved stop + service dnsmasq start + } update-rc.d dnsmasq disable + service dnsmasq stop [[ "$DOCKERBUILD" == 1 ]] && { cat > /etc/services-available.d/100dnsmasq <<EOF |