diff options
author | Tobias K <6317548+theCalcaholic@users.noreply.github.com> | 2022-07-17 03:37:56 +0300 |
---|---|---|
committer | Tobias K <6317548+theCalcaholic@users.noreply.github.com> | 2022-07-17 03:37:56 +0300 |
commit | 13bd7599110500ad387b5f745a4662ca7491cdf2 (patch) | |
tree | e906aac3c5b8132f2a02315a8cdd6717bcb6b6ad /bin/ncp/NETWORKING/dnsmasq.sh | |
parent | e4d66e5c2299250a5aea9970b26a522a65946ef9 (diff) |
Fix RPI build
Diffstat (limited to 'bin/ncp/NETWORKING/dnsmasq.sh')
-rw-r--r-- | bin/ncp/NETWORKING/dnsmasq.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/ncp/NETWORKING/dnsmasq.sh b/bin/ncp/NETWORKING/dnsmasq.sh index 79826976..fee825f9 100644 --- a/bin/ncp/NETWORKING/dnsmasq.sh +++ b/bin/ncp/NETWORKING/dnsmasq.sh @@ -11,16 +11,19 @@ install() { + set -x apt-get update apt-get install --no-install-recommends -y dnsmasq rc=0 service dnsmasq status > /dev/null 2>&1 || rc=$? - ! is_docker && [[ $rc -eq 3 ]] && { + ! is_docker && [[ $rc -eq 3 ]] && service systemd-resolve status && { echo "Applying workaround for dnsmasq bug (compare issue #1446)" service systemd-resolved stop service dnsmasq start + service dnsmasq stop + service systemd-resolved start } - update-rc.d dnsmasq disable + update-rc.d dnsmasq disable || rm /etc/systemd/system/multi-user.target.wants/dnsmasq.service service dnsmasq stop [[ "$DOCKERBUILD" == 1 ]] && { |