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
if [[ -e /etc/systemd/resolved.conf.orig ]]; then
systemctl disable systemd-resolved
${SUDO} cp /etc/systemd/resolved.conf.orig /etc/systemd/resolved.conf
systemctl enable systemd-resolved
systemctl reload-or-restart systemd-resolved
fi
# Remove FTL