diff options
author | Ermal <eri@pfsense.org> | 2012-06-14 19:41:26 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-06-14 19:43:45 +0000 |
commit | 88f5369c7eaf2cf478c501755e87083bb721edb5 (patch) | |
tree | 49086a30be614e13c2d8d1749da690543e7dbeec /config/snort/snort_interfaces.php | |
parent | e9807d02b51e3d095395d3ac77abf0e1c043bc44 (diff) | |
download | pfsense-packages-88f5369c7eaf2cf478c501755e87083bb721edb5.tar.gz pfsense-packages-88f5369c7eaf2cf478c501755e87083bb721edb5.tar.bz2 pfsense-packages-88f5369c7eaf2cf478c501755e87083bb721edb5.zip |
Move logs and alert file to per instance folder. Also remove configuration only on deletion of an instance and not when its stopped
Diffstat (limited to 'config/snort/snort_interfaces.php')
-rw-r--r-- | config/snort/snort_interfaces.php | 2 |
1 files changed, 2 insertions, 0 deletions
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]); } |