aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_interfaces.php
diff options
context:
space:
mode:
Diffstat (limited to 'config/snort/snort_interfaces.php')
-rw-r--r--config/snort/snort_interfaces.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/snort/snort_interfaces.php b/config/snort/snort_interfaces.php
index 93b0050d..0d3ee8c1 100644
--- a/config/snort/snort_interfaces.php
+++ b/config/snort/snort_interfaces.php
@@ -35,7 +35,7 @@ require_once("guiconfig.inc");
require_once("/usr/local/pkg/snort/snort_gui.inc");
require_once("/usr/local/pkg/snort/snort.inc");
-global $g;
+global $g, $snortdir;
$id = $_GET['id'];
if (isset($_POST['id']))
@@ -58,7 +58,7 @@ if (isset($_POST['del_x'])) {
Running_Stop($snort_uuid,$if_real, $rulei);
exec("/bin/rm -r /var/log/snort/snort_{$if_real}{$snort_uuid}");
- exec("/bin/rm -r /usr/local/etc/snort/snort_{$snort_uuid}_{$if_real}");
+ exec("/bin/rm -r {$snortdir}/snort_{$snort_uuid}_{$if_real}");
unset($a_nat[$rulei]);
}