diff options
author | Ermal <eri@pfsense.org> | 2012-07-15 21:27:52 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-07-15 21:27:52 +0000 |
commit | 3fe05aeaa3f3d3b85dc6a57ee3be14d7e27baace (patch) | |
tree | 73851e2d273a785c1f2c001db3ce1272108dc7e2 | |
parent | c4c3fd3d5bf088ccd47c1f3af1ea7818c3ca2270 (diff) | |
download | pfsense-packages-3fe05aeaa3f3d3b85dc6a57ee3be14d7e27baace.tar.gz pfsense-packages-3fe05aeaa3f3d3b85dc6a57ee3be14d7e27baace.tar.bz2 pfsense-packages-3fe05aeaa3f3d3b85dc6a57ee3be14d7e27baace.zip |
Remvoe log dir when interface changes
-rw-r--r-- | config/snort/snort_interfaces_edit.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/snort/snort_interfaces_edit.php b/config/snort/snort_interfaces_edit.php index 50340853..bb6d1cb0 100644 --- a/config/snort/snort_interfaces_edit.php +++ b/config/snort/snort_interfaces_edit.php @@ -109,6 +109,7 @@ if ($_POST["Submit"]) { if ($natent['interface'] != $a_rule[$id]['interface']) { $oif_real = snort_get_real_interface($a_rule[$id]['interface']); snort_stop($a_rule[$id], $oif_real); + exec("rm -r /var/log/snort_{$oif_real}" . $a_rule[$id]['uuid']); } $a_rule[$id] = $natent; } else |