From 0ebd68f17fe934e0a59967e3e700b58c839e0d57 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Tue, 14 Aug 2018 09:55:16 +0200 Subject: [PATCH] Review comments Signed-off-by: DL6ER --- pihole | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/pihole b/pihole index b4e4b0b8..80b395a9 100755 --- a/pihole +++ b/pihole @@ -203,7 +203,7 @@ Time: if [[ -e "${gravitylist}.bck" ]]; then mv "${gravitylist}.bck" "${gravitylist}" fi - if [[ -e "${blacklist}" ]]; then + if [[ -e "${blacklist}.bck" ]]; then mv "${blacklist}.bck" "${blacklist}" fi sed -i "/BLOCKING_ENABLED=/d" "${setupVars}" @@ -253,8 +253,6 @@ Options: } statusFunc() { - local addnConfigs - # Determine if service is running on port 53 (Cr: https://superuser.com/a/806331) if (echo > /dev/tcp/127.0.0.1/53) >/dev/null 2>&1; then if [[ "${1}" != "web" ]]; then @@ -269,9 +267,6 @@ statusFunc() { fi # Determine if Pi-hole's blocking is enabled - - addnConfigs=$? - if grep -q "BLOCKING_ENABLED=false" /etc/pihole/setupVars.conf; then # A config is commented out case "${1}" in