mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-10 15:12:01 -03:30
dnsmasq.sh: Revert dnsmasq workaround
This commit is contained in:
parent
99cc9e610c
commit
82beb6eeaf
@ -14,11 +14,16 @@ install()
|
||||
set -x
|
||||
apt-get update
|
||||
apt-get install --no-install-recommends -y dnsmasq
|
||||
service dnsmasq stop
|
||||
! is_docker && {
|
||||
service systemd-resolved start || true
|
||||
systemctl enable systemd-resolved || echo "WARN: systemd-resolved could not be enabled. This might cause networking issues!"
|
||||
rc=0
|
||||
service dnsmasq status > /dev/null 2>&1 || rc=$?
|
||||
! is_docker && [[ $rc -eq 3 ]] && {
|
||||
echo "Applying workaround for dnsmasq bug (compare issue #1446)"
|
||||
service systemd-resolved stop || true
|
||||
service dnsmasq start
|
||||
service dnsmasq status
|
||||
}
|
||||
|
||||
service dnsmasq stop
|
||||
update-rc.d dnsmasq disable || rm /etc/systemd/system/multi-user.target.wants/dnsmasq.service
|
||||
|
||||
[[ "$DOCKERBUILD" == 1 ]] && {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user