mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-24 13:50:17 +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
|
||||
|
||||
local str="Pi-hole Disabled"
|
||||
sed -i "/BLOCKING=/d" "${setupVars}"
|
||||
echo "BLOCKING=true" >> "${setupVars}"
|
||||
fi
|
||||
else
|
||||
# Enable Pi-hole
|
||||
|
@ -203,6 +205,8 @@ Time:
|
|||
if [[ -e "${blacklist}" ]]; then
|
||||
mv "${blacklist}.bck" "${blacklist}"
|
||||
fi
|
||||
sed -i "/BLOCKING=/d" "${setupVars}"
|
||||
echo "BLOCKING=false" >> "${setupVars}"
|
||||
fi
|
||||
|
||||
restartDNS reload
|
||||
|
|
Loading…
Reference in a new issue