mirror of
https://github.com/pi-hole/pi-hole
synced 2024-11-18 06:08:21 +00:00
restore resolvd.conf
If dnsmasq is removed, resolved will need to be restored. Signed-off-by: Rob Gill <rrobgill@protonmail.com>
This commit is contained in:
parent
adf2275018
commit
3d3e7a330c
@ -165,6 +165,13 @@ removeNoPurge() {
|
|||||||
${SUDO} rm -f /etc/sudoers.d/pihole &> /dev/null
|
${SUDO} rm -f /etc/sudoers.d/pihole &> /dev/null
|
||||||
echo -e " ${TICK} Removed config files"
|
echo -e " ${TICK} Removed config files"
|
||||||
|
|
||||||
|
# Restore resolved
|
||||||
|
if [[ -e /etc/systemd/resolved.conf.orig ]]; then
|
||||||
|
systemctl disable systemd-resolved
|
||||||
|
cp /etc/systemd/resolved.conf.orig /etc/systemd/resolved.conf
|
||||||
|
systemctl enable systemd-resolved
|
||||||
|
fi
|
||||||
|
|
||||||
# Remove FTL
|
# Remove FTL
|
||||||
if command -v pihole-FTL &> /dev/null; then
|
if command -v pihole-FTL &> /dev/null; then
|
||||||
echo -ne " ${INFO} Removing pihole-FTL..."
|
echo -ne " ${INFO} Removing pihole-FTL..."
|
||||||
|
Loading…
Reference in New Issue
Block a user