From dba1ab3fc0cf0d36003ba60dc9102b325555c89e Mon Sep 17 00:00:00 2001 From: Dan Schaper Date: Tue, 27 Sep 2016 19:31:21 -0700 Subject: [PATCH] Remove compareWhitelist --- advanced/Scripts/piholeDebug.sh | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/advanced/Scripts/piholeDebug.sh b/advanced/Scripts/piholeDebug.sh index ebeee470..322de330 100755 --- a/advanced/Scripts/piholeDebug.sh +++ b/advanced/Scripts/piholeDebug.sh @@ -192,28 +192,6 @@ function portCheck { echo >> ${DEBUG_LOG} } -function compareWhitelist { - if [ ! -f "$WHITELISTMATCHES" ]; then - ${SUDO} touch ${WHITELISTMATCHES} - ${SUDO} chmod 644 ${WHITELISTMATCHES} - ${SUDO} chown "$USER":root ${WHITELISTMATCHES} - else - truncate -s 0 ${WHITELISTMATCHES} - fi - - echo "#######################################" >> ${DEBUG_LOG} - echo "######## Whitelist Comparison #########" >> ${DEBUG_LOG} - echo "#######################################" >> ${DEBUG_LOG} - while read -r line; do - TMP=$(grep -w ".* $line$" "$GRAVITYFILE") - if [ ! -z "$TMP" ]; then - echo "$TMP" >> ${DEBUG_LOG} - echo "$TMP" >> ${WHITELISTMATCHES} - fi - done < "$WHITELISTFILE" - echo >> ${DEBUG_LOG} -} - function compareBlacklist { echo "#######################################" >> ${DEBUG_LOG} echo "######## Blacklist Comparison #########" >> ${DEBUG_LOG} @@ -311,7 +289,6 @@ distroCheck ipCheck hostnameCheck portCheck -compareWhitelist compareBlacklist testNslookup checkProcesses