diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2014-07-25 12:50:35 -0400 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2014-07-25 12:50:35 -0400 |
commit | e90252e2731fd88a3b53889e6ef1ef370642667f (patch) | |
tree | 2d3db9905cb2649ea2c94269c6683a5421a8147b | |
parent | 27b4b1af377946e6a23fc8b1785ab5e0a8fe4ad3 (diff) | |
download | pfsense-packages-e90252e2731fd88a3b53889e6ef1ef370642667f.tar.gz pfsense-packages-e90252e2731fd88a3b53889e6ef1ef370642667f.tar.bz2 pfsense-packages-e90252e2731fd88a3b53889e6ef1ef370642667f.zip |
Improve code for remove_blocked_hosts cron task mgmt.
-rwxr-xr-x | config/snort/snort.inc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc index 1b3011fa..ce7560b8 100755 --- a/config/snort/snort.inc +++ b/config/snort/snort.inc @@ -768,6 +768,13 @@ function snort_rm_blocked_install_cron($should_install) { function snort_rules_up_install_cron($should_install) { global $config, $g; + // Remove any existing job first + install_cron_job("snort_check_for_rule_updates.php", false); + + // If called with FALSE as argument, then we're done + if ($should_install == FALSE) + return; + $snort_rules_up_info_ck = $config['installedpackages']['snortglobal']['autorulesupdate7']; /* See if a customized start time has been set for rule file updates */ |