aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-09-30 23:38:15 +0200
committerdoktornotor <notordoktor@gmail.com>2015-09-30 23:38:15 +0200
commitca4a5a1af57903b6d1c8607ab6ef33f5fe982705 (patch)
tree1e3a1a7294736fa3a456d35d3b9fe3ed87873fa2 /config
parent77f503b6f9dbdc5f74061345f6340e3c3d989e87 (diff)
downloadpfsense-packages-ca4a5a1af57903b6d1c8607ab6ef33f5fe982705.tar.gz
pfsense-packages-ca4a5a1af57903b6d1c8607ab6ef33f5fe982705.tar.bz2
pfsense-packages-ca4a5a1af57903b6d1c8607ab6ef33f5fe982705.zip
Do not do useless checks for freshclam cronjob
Diffstat (limited to 'config')
-rwxr-xr-xconfig/squid3/34/squid.inc6
1 files changed, 1 insertions, 5 deletions
diff --git a/config/squid3/34/squid.inc b/config/squid3/34/squid.inc
index d2013f83..dce1f5d3 100755
--- a/config/squid3/34/squid.inc
+++ b/config/squid3/34/squid.inc
@@ -1621,11 +1621,7 @@ EOF;
file_put_contents(SQUID_LOCALBASE . "/etc/freshclam.conf.sample", preg_replace($freshclam_m, $freshclam_r, $sample_file), LOCK_EX);
}
// freshclam cronjob
- if ($antivirus_config['enable'] == "on") {
- squid_install_freshclam_cron(true);
- } else {
- squid_install_freshclam_cron(false);
- }
+ squid_install_freshclam_cron(true);
// check squidclamav files until PBIs are gone (https://redmine.pfsense.org/issues/4197)
$ln_icap = array('bin/c-icap', 'bin/c-icap-client', 'c-icap-config', 'c-icap-libicapapi-config', 'c-icap-stretch', 'lib/c_icap', 'share/c_icap', 'etc/c-icap');