1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 14:58:08 +00:00

reload resloved

reload resolved config if possible, restart otherwise

Signed-off-by: Rob Gill <rrobgill@protonmail.com>
This commit is contained in:
Rob Gill 2018-05-16 07:35:22 +10:00 committed by GitHub
parent c400b914e5
commit 15f0ba839f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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