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
1 changed files with 4 additions and 0 deletions

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