diff options
author | Ermal <eri@pfsense.org> | 2012-07-12 18:40:04 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-07-12 18:40:04 +0000 |
commit | 609fa3f911338ff7de557463979f0537abde2526 (patch) | |
tree | f073685ab39373f3a4ae13a168f49f4e05bc2e6d | |
parent | 5180182c8975d4630cbc22174cc41f8e2c6d2b55 (diff) | |
download | pfsense-packages-609fa3f911338ff7de557463979f0537abde2526.tar.gz pfsense-packages-609fa3f911338ff7de557463979f0537abde2526.tar.bz2 pfsense-packages-609fa3f911338ff7de557463979f0537abde2526.zip |
Fix snort cron issues
-rw-r--r-- | config/snort/snort.inc | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc index 756740fe..547336cc 100644 --- a/config/snort/snort.inc +++ b/config/snort/snort.inc @@ -663,19 +663,17 @@ function sync_snort_package_config() { /* create snort bootup file snort.sh only create once */ snort_create_rc(); - if (is_array($config['installedpackages']['snortglobal'])) { - $snortglob = $config['installedpackages']['snortglobal']; + $snortglob = $config['installedpackages']['snortglobal']; - snort_snortloglimit_install_cron($snortglob['snortloglimit'] == 'ok' ? true : false); - - /* set the snort block hosts time IMPORTANT */ - snort_rm_blocked_install_cron($snortglob['rm_blocked'] == "never_b" ? true : false); - - /* set the snort rules update time */ - snort_rules_up_install_cron($snortglob['autorulesupdate7'] == "never_up" ? true : false); + snort_snortloglimit_install_cron($snortglob['snortloglimit'] == 'on' ? true : false); - configure_cron(); - } + /* set the snort block hosts time IMPORTANT */ + snort_rm_blocked_install_cron($snortglob['rm_blocked'] != "never_b" ? true : false); + + /* set the snort rules update time */ + snort_rules_up_install_cron($snortglob['autorulesupdate7'] != "never_up" ? true : false); + + configure_cron(); conf_mount_ro(); } |