mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-01-12 06:54:53 +00:00
Remove compareWhitelist
This commit is contained in:
parent
3df9c48012
commit
dba1ab3fc0
1 changed files with 0 additions and 23 deletions
|
@ -192,28 +192,6 @@ function portCheck {
|
||||||
echo >> ${DEBUG_LOG}
|
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 {
|
function compareBlacklist {
|
||||||
echo "#######################################" >> ${DEBUG_LOG}
|
echo "#######################################" >> ${DEBUG_LOG}
|
||||||
echo "######## Blacklist Comparison #########" >> ${DEBUG_LOG}
|
echo "######## Blacklist Comparison #########" >> ${DEBUG_LOG}
|
||||||
|
@ -311,7 +289,6 @@ distroCheck
|
||||||
ipCheck
|
ipCheck
|
||||||
hostnameCheck
|
hostnameCheck
|
||||||
portCheck
|
portCheck
|
||||||
compareWhitelist
|
|
||||||
compareBlacklist
|
compareBlacklist
|
||||||
testNslookup
|
testNslookup
|
||||||
checkProcesses
|
checkProcesses
|
||||||
|
|
Loading…
Reference in a new issue