diff --git a/mint.sh b/mint.sh index 9d2a67a..59a2696 100644 --- a/mint.sh +++ b/mint.sh @@ -18,7 +18,11 @@ whoami | grep -q ^root$ || read x # Check for using DoHoT if [ -s /etc/dontusedohot ] then - [ -s /etc/systemd/resolved.conf.d/DoHoT.conf ] && rm -f /etc/systemd/resolved.conf.d/DoHoT.conf + if [ -e /etc/systemd/resolved.conf.d/DoHoT.conf ] + then + sudo rm -f /etc/systemd/resolved.conf.d/DoHoT.conf + sudo systemctl restart systemd-resolved.service + fi else echo "[Resolve] DNS=127.0.2.1