aboutsummaryrefslogtreecommitdiffstats
path: root/config/suricata
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-12-25 11:22:22 -0500
committerbmeeks8 <bmeeks8@bellsouth.net>2014-12-25 11:22:22 -0500
commit0b369ed3ffbc8c57995f8f9176bcc4ae3f8c06ff (patch)
tree8a3abc09ba5a257d307e1725f6cfddd24c84333c /config/suricata
parent31c40a608469a3739cfcdb08fed8c967ef27291a (diff)
downloadpfsense-packages-0b369ed3ffbc8c57995f8f9176bcc4ae3f8c06ff.tar.gz
pfsense-packages-0b369ed3ffbc8c57995f8f9176bcc4ae3f8c06ff.tar.bz2
pfsense-packages-0b369ed3ffbc8c57995f8f9176bcc4ae3f8c06ff.zip
Always do a manual IQRisk file check when enabled and saving settings.
Diffstat (limited to 'config/suricata')
-rw-r--r--config/suricata/suricata_ip_list_mgmt.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/config/suricata/suricata_ip_list_mgmt.php b/config/suricata/suricata_ip_list_mgmt.php
index ee3a7009..1d928531 100644
--- a/config/suricata/suricata_ip_list_mgmt.php
+++ b/config/suricata/suricata_ip_list_mgmt.php
@@ -101,11 +101,14 @@ if ($_POST['save']) {
/* Toggle cron task for ET IQRisk updates if setting was changed */
if ($config['installedpackages']['suricata']['config'][0]['et_iqrisk_enable'] == 'on' && !suricata_cron_job_exists("/usr/local/pkg/suricata/suricata_etiqrisk_update.php")) {
- include("/usr/local/pkg/suricata/suricata_etiqrisk_update.php");
install_cron_job("/usr/bin/nice -n20 /usr/local/bin/php -f /usr/local/pkg/suricata/suricata_etiqrisk_update.php", TRUE, 0, 0, "*", "*", "*", "root");
}
elseif ($config['installedpackages']['suricata']['config'][0]['et_iqrisk_enable'] == 'off' && suricata_cron_job_exists("/usr/local/pkg/suricata/suricata_etiqrisk_update.php"))
install_cron_job("/usr/local/pkg/suricata/suricata_etiqrisk_update.php", FALSE);
+
+ /* Peform a manual ET IQRisk file check/download */
+ if ($config['installedpackages']['suricata']['config'][0]['et_iqrisk_enable'] == 'on')
+ include("/usr/local/pkg/suricata/suricata_etiqrisk_update.php");
}
}