1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-11-17 21:59:55 +00:00

Storing BLOCKING=true/false in setupVars.conf

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2018-08-13 13:49:47 +02:00
parent 6cde066edd
commit d8abc1d266
No known key found for this signature in database
GPG Key ID: 00135ACBD90B28DD

4
pihole
View File

@ -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