dnsmasq.sh: Simplify dnsmasq workaround

This commit is contained in:
Tobias K 2022-07-17 17:29:43 +02:00
parent 0ce9d1175b
commit 23fa33b638

View File

@ -15,7 +15,10 @@ install()
apt-get update
apt-get install --no-install-recommends -y dnsmasq
service dnsmasq stop
! is_docker && service systemd-resolved start || true
! is_docker && {
service systemd-resolved start || true
update-rc.d systemd-resolved enable
}
update-rc.d dnsmasq disable || rm /etc/systemd/system/multi-user.target.wants/dnsmasq.service
[[ "$DOCKERBUILD" == 1 ]] && {