From 88f5369c7eaf2cf478c501755e87083bb721edb5 Mon Sep 17 00:00:00 2001 From: Ermal Date: Thu, 14 Jun 2012 19:41:26 +0000 Subject: Move logs and alert file to per instance folder. Also remove configuration only on deletion of an instance and not when its stopped --- config/snort/snort_interfaces.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config/snort/snort_interfaces.php') diff --git a/config/snort/snort_interfaces.php b/config/snort/snort_interfaces.php index 86a9aff6..31f266c9 100644 --- a/config/snort/snort_interfaces.php +++ b/config/snort/snort_interfaces.php @@ -57,6 +57,8 @@ if (isset($_POST['del_x'])) { $snort_uuid = $a_nat[$rulei]['uuid']; 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}"); unset($a_nat[$rulei]); } -- cgit v1.2.3