diff options
author | doktornotor <notordoktor@gmail.com> | 2015-10-11 23:50:12 +0200 |
---|---|---|
committer | doktornotor <notordoktor@gmail.com> | 2015-10-11 23:50:12 +0200 |
commit | d3554bcd81cc824f3f328e950082dd8da9d0a996 (patch) | |
tree | 2b869bcb2884d223ff307ab5b2abeb543a7719cc /config/squid3 | |
parent | 3efdd574a6b657eb6b59e80f0db4e5838fb668ab (diff) | |
download | pfsense-packages-d3554bcd81cc824f3f328e950082dd8da9d0a996.tar.gz pfsense-packages-d3554bcd81cc824f3f328e950082dd8da9d0a996.tar.bz2 pfsense-packages-d3554bcd81cc824f3f328e950082dd8da9d0a996.zip |
Move antivirus config migration to squid_antivirus.inc
Diffstat (limited to 'config/squid3')
-rw-r--r-- | config/squid3/34/squid_antivirus.inc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/config/squid3/34/squid_antivirus.inc b/config/squid3/34/squid_antivirus.inc index 5c3b6b3f..7af50399 100644 --- a/config/squid3/34/squid_antivirus.inc +++ b/config/squid3/34/squid_antivirus.inc @@ -222,6 +222,18 @@ function squid_antivirus_deinstall_command() { } } +/* Migrate configuration from old Squid package versions */ +function squid_antivirus_upgrade_config() { + global $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']); + } +} + /* * Antivirus features configuration * |