From 1963a3da562f32f962813a374dac2419f85005af Mon Sep 17 00:00:00 2001 From: Jason Date: Wed, 16 Feb 2022 17:39:19 -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 | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/bin/create-blocklists.sh b/bin/create-blocklists.sh index cddbc1a..bc74ee0 100755 --- a/bin/create-blocklists.sh +++ b/bin/create-blocklists.sh @@ -1,11 +1,9 @@ #!/usr/bin/env bash -set -ex - -SQUID_USER="${SQUID_USER:-root}" +SQUID_USER="${SQUID_USER:-squid}" SQUID_LOG_DIR="${SQUID_LOG_DIR:-/data/log/squid}" -REDIRECT_URL="${REDIRECT_URL:-/}" -BLOCKLIST="${BLOCKLIST:-http://www.shallalist.de/Downloads/shallalist.tar.gz}" +REDIRECT_URL="${REDIRECT_URL:-}" +BLOCKLIST="${BLOCKLIST:-http://dsi.ut-capitole.fr/blacklists/download/blacklists_for_pfsense.tar.gz}" BLOCKED_CATEGORIES="${BLOCKED_CATEGORIES:-adv,aggressive,porn,spyware,violence,warez}" CONFIG_FILE="/etc/squidguard/squidGuard.conf" @@ -62,7 +60,7 @@ NOT_LIST="${BLOCKED_CATEGORIES//,/ !}" echo "}" } >>"${CONFIG_FILE}" -squidGuard -C all +squidGuard -b -d -C all chown -R ${SQUID_USER}:${SQUID_USER} "${DB_LOCATION}" chown -R ${SQUID_USER}:${SQUID_USER} "${LOG_LOCATION}"