From 17463673f25a15fee2417c40ec093739e4b8f897 Mon Sep 17 00:00:00 2001 From: Jason Date: Thu, 17 Feb 2022 15:34:48 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20modified:=20bin/create-?= =?UTF-8?q?blocklists.sh=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/create-blocklists.sh | 8 -------- 1 file changed, 8 deletions(-) diff --git a/bin/create-blocklists.sh b/bin/create-blocklists.sh index 53cc2ad..c6929df 100755 --- a/bin/create-blocklists.sh +++ b/bin/create-blocklists.sh @@ -6,7 +6,6 @@ REDIRECT_URL="${REDIRECT_URL:-}" BLOCKLIST="${BLOCKLIST:-https://github.com/casjay/resources/raw/main/files/shallalist.tar.gz}" BLOCKED_CATEGORIES="${BLOCKED_CATEGORIES:-adv,aggressive,porn,spyware,violence,warez}" -CONFIG_FILE="/etc/squidguard/squidGuard.conf" DB_LOCATION="/data/squidguard/db" LOG_LOCATION="/data/log" @@ -17,13 +16,6 @@ echo "Extracting blocklist..." mkdir -p /tmp/blocklist tar xzf /tmp/blocklist.tgz --strip-components=1 -C /tmp/blocklist -echo "Creating config file..." -rm "${CONFIG_FILE}" -touch "${CONFIG_FILE}" - -echo "dbhome ${DB_LOCATION}" >>"${CONFIG_FILE}" -echo "logdir ${LOG_LOCATION}" >>"${CONFIG_FILE}" - for CATEGORY in $(echo ${BLOCKED_CATEGORIES} | sed "s/,/ /g"); do if [ ! -d "/tmp/blocklist/${CATEGORY}" ]; then echo "Category ${CATEGORY} not available!"