Storing BLOCKING=true/false in setupVars.conf
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
parent
6cde066edd
commit
d8abc1d266
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 New Issue