diff options
author | Ermal <eri@pfsense.org> | 2012-07-16 14:59:28 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-07-16 14:59:28 +0000 |
commit | 48309bff4845b659eea5a1fc6824aaa7ccb65c84 (patch) | |
tree | 9cf43cf91aa97306e7b4141c70d88cdf91db25c3 | |
parent | 92fc14e2e523e2c314868fd861a80d0a25bd7549 (diff) | |
download | pfsense-packages-48309bff4845b659eea5a1fc6824aaa7ccb65c84.tar.gz pfsense-packages-48309bff4845b659eea5a1fc6824aaa7ccb65c84.tar.bz2 pfsense-packages-48309bff4845b659eea5a1fc6824aaa7ccb65c84.zip |
Rename the underlying folder when chaning iface on the config
-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 bb6d1cb0..678caa89 100644 --- a/config/snort/snort_interfaces_edit.php +++ b/config/snort/snort_interfaces_edit.php @@ -110,6 +110,7 @@ if ($_POST["Submit"]) { $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']); + exec("mv -f {$snortdir}/snort_" . $a_rule[$id]['uuid'] . "_{$oif_real} {$snortdir}/snort_" . $a_rule[$id]['uuid'] . "_{$if_real}"); } $a_rule[$id] = $natent; } else |