plugins: whitespace sweep

This commit is contained in:
Franco Fichtner
2019-09-22 11:29:26 +02:00
parent 59260d6350
commit 1b52a3f34c
2 changed files with 3 additions and 3 deletions
@@ -215,10 +215,10 @@ install() {
for FILE in $(find ${WORKDIR} -type f); do
WHITE=$(cat ${DESTDIR}/whitelist.inc | tr ',' '|')
if [ -z "${WHITE}" ]; then
cat ${FILE} | sort -u | awk '{printf "server:\n", $1; printf "local-data: \"%s A 0.0.0.0\"\n", $1}' > ${FILE}.inc
cat ${FILE} | sort -u | awk '{printf "server:\n", $1; printf "local-data: \"%s A 0.0.0.0\"\n", $1}' > ${FILE}.inc
else
cat ${FILE} | sort -u | egrep -v "$WHITE" | awk '{printf "server:\n", $1; printf "local-data: \"%s A 0.0.0.0\"\n", $1}' > ${FILE}.inc
fi
fi
done
# Merge resulting files (/dev/null in case there are none)
cat $(find ${WORKDIR} -type f -name "*.inc") /dev/null > ${DESTDIR}/dnsbl.conf
@@ -34,7 +34,7 @@
<all>All</all>
<ipv4>IPv4</ipv4>
<ipv6>IPv6</ipv6>
</OptionValues>
</OptionValues>
</ip_version>
<bind_address type="NetworkField">
<Required>N</Required>