mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-25 06:10:20 +00:00
Storing BLOCKING=true/false in setupVars.conf
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
parent
6cde066edd
commit
d8abc1d266
1 changed files with 4 additions and 0 deletions
4
pihole
4
pihole
|
@ -191,6 +191,8 @@ Time:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local str="Pi-hole Disabled"
|
local str="Pi-hole Disabled"
|
||||||
|
sed -i "/BLOCKING=/d" "${setupVars}"
|
||||||
|
echo "BLOCKING=true" >> "${setupVars}"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# Enable Pi-hole
|
# Enable Pi-hole
|
||||||
|
@ -203,6 +205,8 @@ Time:
|
||||||
if [[ -e "${blacklist}" ]]; then
|
if [[ -e "${blacklist}" ]]; then
|
||||||
mv "${blacklist}.bck" "${blacklist}"
|
mv "${blacklist}.bck" "${blacklist}"
|
||||||
fi
|
fi
|
||||||
|
sed -i "/BLOCKING=/d" "${setupVars}"
|
||||||
|
echo "BLOCKING=false" >> "${setupVars}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
restartDNS reload
|
restartDNS reload
|
||||||
|
|
Loading…
Reference in a new issue