aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_interfaces_global.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-07-09 18:38:08 +0000
committerErmal <eri@pfsense.org>2012-07-09 22:16:11 +0000
commita4773870bd45062d305acdab112ab2aad740f6dc (patch)
treef73e224e5ba9ff5147b371019bc513930eff9652 /config/snort/snort_interfaces_global.php
parent62a83ccf18a2640e7180dc908935701be816e492 (diff)
downloadpfsense-packages-a4773870bd45062d305acdab112ab2aad740f6dc.tar.gz
pfsense-packages-a4773870bd45062d305acdab112ab2aad740f6dc.tar.bz2
pfsense-packages-a4773870bd45062d305acdab112ab2aad740f6dc.zip
Revert 958efd439784459a5848fb05afe1560c4db285d7
Diffstat (limited to 'config/snort/snort_interfaces_global.php')
-rw-r--r--config/snort/snort_interfaces_global.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/snort/snort_interfaces_global.php b/config/snort/snort_interfaces_global.php
index 59b725ab..bd905a5e 100644
--- a/config/snort/snort_interfaces_global.php
+++ b/config/snort/snort_interfaces_global.php
@@ -37,7 +37,7 @@
require_once("guiconfig.inc");
require_once("/usr/local/pkg/snort/snort.inc");
-global $g;
+global $g, $snortdir;
$d_snort_global_dirty_path = '/var/run/snort_global.dirty';
@@ -119,7 +119,7 @@ if (!$input_errors) {
if ($_POST["Reset"]) {
function snort_deinstall_settings() {
- global $config, $g, $id, $if_real;
+ global $config, $g, $id, $if_real, $snortdir;
exec("/usr/usr/bin/killall snort");
sleep(2);
@@ -164,7 +164,7 @@ if ($_POST["Reset"]) {
unset($config['installedpackages']['snortglobal']);
/* remove all snort iface dir */
- exec('rm -r /usr/local/etc/snort/snort_*');
+ exec("rm -r {$snortdir}/snort_*");
exec('rm /var/log/snort/*');
}