From 36da794e0717db9d34483253ec7f7c9031816373 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Tue, 6 Oct 2015 06:49:18 +0200 Subject: unset broken antivirus settings on upgrade --- config/squid3/34/squid.inc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'config/squid3') diff --git a/config/squid3/34/squid.inc b/config/squid3/34/squid.inc index bb1e46ec..1c4194b9 100755 --- a/config/squid3/34/squid.inc +++ b/config/squid3/34/squid.inc @@ -742,6 +742,14 @@ function squid_upgrade_config() { } } } + + /* unset broken antivirus settings */ + if (is_array($config['installedpackages']['squidantivirus'])) { + unset($config['installedpackages']['squidantivirus']['config'][0]['squidclamav']); + unset($config['installedpackages']['squidantivirus']['config'][0]['c-icap_conf']); + unset($config['installedpackages']['squidantivirus']['config'][0]['c-icap_magic']); + unset($config['installedpackages']['squidantivirus']['config'][0]['freshclam_conf']); + } update_output_window("Writing configuration... One moment please..."); write_config(); -- cgit v1.2.3