diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-12-29 11:08:44 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-12-29 11:08:44 -0200 |
commit | 28c552b11ab71035755720ff2a6092f45b961439 (patch) | |
tree | 6cfafb8f0a07535ef511d7f7f2cbea9e6dfd611d /config/suricata/suricata_post_install.php | |
parent | 6b948d63887c06c2ba4d8dc488c14b69df28322a (diff) | |
parent | 20518f1fbae82aee10ee617636f5fdb66209d324 (diff) | |
download | pfsense-packages-28c552b11ab71035755720ff2a6092f45b961439.tar.gz pfsense-packages-28c552b11ab71035755720ff2a6092f45b961439.tar.bz2 pfsense-packages-28c552b11ab71035755720ff2a6092f45b961439.zip |
Merge pull request #761 from bmeeks8/suricata-2.0.4-v2.1.2
Diffstat (limited to 'config/suricata/suricata_post_install.php')
-rw-r--r-- | config/suricata/suricata_post_install.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/config/suricata/suricata_post_install.php b/config/suricata/suricata_post_install.php index f4a66b0b..070cf095 100644 --- a/config/suricata/suricata_post_install.php +++ b/config/suricata/suricata_post_install.php @@ -112,6 +112,10 @@ safe_mkdir(SURICATALOGDIR); safe_mkdir(SURICATA_SID_MODS_PATH); safe_mkdir(SURICATA_IPREP_PATH); +// Make sure config variable is an array +if (!is_array($config['installedpackages']['suricata']['config'][0])) + $config['installedpackages']['suricata']['config'][0] = array(); + // Download the latest GeoIP DB updates and create cron task if the feature is not disabled if ($config['installedpackages']['suricata']['config'][0]['autogeoipupdate'] != 'off') { log_error(gettext("[Suricata] Installing free GeoIP country database files...")); @@ -123,7 +127,7 @@ if ($config['installedpackages']['suricata']['config'][0]['autogeoipupdate'] != if ($config['installedpackages']['suricata']['config'][0]['et_iqrisk_enable'] == 'on') { log_error(gettext("[Suricata] Installing Emerging Threats IQRisk IP List...")); 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"); + install_cron_job("/usr/bin/nice -n20 /usr/local/bin/php -f /usr/local/pkg/suricata/suricata_etiqrisk_update.php", TRUE, 0, "*/6", "*", "*", "*", "root"); } // remake saved settings if previously flagged @@ -254,8 +258,8 @@ if (empty($config['installedpackages']['suricata']['config'][0]['forcekeepsettin conf_mount_ro(); // Update Suricata package version in configuration -$config['installedpackages']['suricata']['config'][0]['suricata_config_ver'] = "2.1"; -write_config("Suricata pkg v2.1: post-install configuration saved."); +$config['installedpackages']['suricata']['config'][0]['suricata_config_ver'] = "2.1.2"; +write_config("Suricata pkg v2.1.2: post-install configuration saved."); // Done with post-install, so clear flag unset($g['suricata_postinstall']); |