aboutsummaryrefslogtreecommitdiffstats
path: root/config/suricata
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-05-14 15:02:47 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2014-05-14 15:02:47 -0400
commit7bd64136fd373b22cd57e73f000aa9a95afee750 (patch)
treee4c5f578d4fababa0a601cf22fab866853693d12 /config/suricata
parent2d30e78dba257910ad69e4a3cb043c2a97704266 (diff)
downloadpfsense-packages-7bd64136fd373b22cd57e73f000aa9a95afee750.tar.gz
pfsense-packages-7bd64136fd373b22cd57e73f000aa9a95afee750.tar.bz2
pfsense-packages-7bd64136fd373b22cd57e73f000aa9a95afee750.zip
Use system vars where possible; bump GUI config version.
Diffstat (limited to 'config/suricata')
-rw-r--r--config/suricata/suricata_post_install.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/suricata/suricata_post_install.php b/config/suricata/suricata_post_install.php
index c44b392f..eb193d58 100644
--- a/config/suricata/suricata_post_install.php
+++ b/config/suricata/suricata_post_install.php
@@ -60,14 +60,14 @@ if(is_process_running("suricata")) {
killbyname("suricata");
sleep(2);
// Delete any leftover suricata PID files in /var/run
- unlink_if_exists("/var/run/suricata_*.pid");
+ unlink_if_exists("{$g['varrun_path']}/suricata_*.pid");
}
// Hard kill any running Barnyard2 processes
if(is_process_running("barnyard")) {
killbyname("barnyard2");
sleep(2);
// Delete any leftover barnyard2 PID files in /var/run
- unlink_if_exists("/var/run/barnyard2_*.pid");
+ unlink_if_exists("{$g['varrun_path']}/barnyard2_*.pid");
}
// Set flag for post-install in progress
@@ -148,7 +148,7 @@ if ($config['installedpackages']['suricata']['config'][0]['forcekeepsettings'] =
}
// Update Suricata package version in configuration
-$config['installedpackages']['suricata']['config'][0]['suricata_config_ver'] = "v1.0.1";
+$config['installedpackages']['suricata']['config'][0]['suricata_config_ver'] = "v1.0.2";
write_config();
// Done with post-install, so clear flag