mirror of
https://github.com/pi-hole/pi-hole
synced 2024-11-17 21:59:55 +00:00
reload resloved
reload resolved config if possible, restart otherwise Signed-off-by: Rob Gill <rrobgill@protonmail.com>
This commit is contained in:
parent
c400b914e5
commit
15f0ba839f
@ -167,9 +167,8 @@ removeNoPurge() {
|
|||||||
|
|
||||||
# Restore resolved
|
# Restore resolved
|
||||||
if [[ -e /etc/systemd/resolved.conf.orig ]]; then
|
if [[ -e /etc/systemd/resolved.conf.orig ]]; then
|
||||||
systemctl disable systemd-resolved
|
|
||||||
${SUDO} cp /etc/systemd/resolved.conf.orig /etc/systemd/resolved.conf
|
${SUDO} cp /etc/systemd/resolved.conf.orig /etc/systemd/resolved.conf
|
||||||
systemctl enable systemd-resolved
|
systemctl reload-or-restart systemd-resolved
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Remove FTL
|
# Remove FTL
|
||||||
|
Loading…
Reference in New Issue
Block a user