diff options
author | doktornotor <notordoktor@gmail.com> | 2015-10-11 23:48:57 +0200 |
---|---|---|
committer | doktornotor <notordoktor@gmail.com> | 2015-10-11 23:48:57 +0200 |
commit | 3efdd574a6b657eb6b59e80f0db4e5838fb668ab (patch) | |
tree | a51f7b78332758d1bf74bd29e584c04ec0abf5b8 /config | |
parent | d52543244d35e8dff7c487dfce1cada44d60e5d3 (diff) | |
download | pfsense-packages-3efdd574a6b657eb6b59e80f0db4e5838fb668ab.tar.gz pfsense-packages-3efdd574a6b657eb6b59e80f0db4e5838fb668ab.tar.bz2 pfsense-packages-3efdd574a6b657eb6b59e80f0db4e5838fb668ab.zip |
Move antivirus config migration to squid_antivirus.inc
Diffstat (limited to 'config')
-rwxr-xr-x | config/squid3/34/squid.inc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/config/squid3/34/squid.inc b/config/squid3/34/squid.inc index e28cf56e..cd502658 100755 --- a/config/squid3/34/squid.inc +++ b/config/squid3/34/squid.inc @@ -619,6 +619,7 @@ function squid_deinstall_command() { /* Migrate configuration from god knows which Squid package versions */ /* None of these ever existed with Squid 3.4 package and this cruft should be most likely just removed */ function squid_upgrade_config() { + global $config; /* migrate existing csv config fields */ if (is_array($config['installedpackages']['squidauth']['config'])) { $settingsauth = $config['installedpackages']['squidauth']['config'][0]; @@ -742,12 +743,7 @@ 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']); - } + squid_antivirus_upgrade_config(); update_output_window("Writing configuration... One moment please..."); write_config(); |