From 21b9af726d7a7fd659e95312a985453fa059633e Mon Sep 17 00:00:00 2001 From: doktornotor Date: Wed, 30 Sep 2015 19:37:55 +0200 Subject: Patch squidclamav.conf so that is uses WebGUI URL by default Stop nagging users with confusing nonsense and make it work out of the box. --- config/squid3/34/squid.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config') diff --git a/config/squid3/34/squid.inc b/config/squid3/34/squid.inc index 8188dfda..bbccd123 100755 --- a/config/squid3/34/squid.inc +++ b/config/squid3/34/squid.inc @@ -1513,9 +1513,9 @@ EOF; if (file_exists(SQUID_LOCALBASE . "/etc/c-icap/squidclamav.conf.default")) { $sample_file = file_get_contents(SQUID_LOCALBASE . "/etc/c-icap/squidclamav.conf.default"); $clamav_m[0] = "@/var/run/clamav/clamd.ctl@"; - $clamav_m[1] = "@cgi-bin/clwarn.cgi@"; + $clamav_m[1] = "@http\://proxy.domain.dom/cgi-bin/clwarn.cgi@"; $clamav_r[0] = "/var/run/clamav/clamd.sock"; - $clamav_r[1] = "squid_clwarn.php"; + $clamav_r[1] = "{$config['system']['webgui']['protocol']}://{$config['system']['hostname']}.{$config['system']['domain']}/squid_clwarn.php"; file_put_contents(SQUID_LOCALBASE . "/etc/c-icap/squidclamav.conf.sample", preg_replace($clamav_m, $clamav_r, $sample_file), LOCK_EX); } } -- cgit v1.2.3