diff options
author | Ermal <eri@pfsense.org> | 2011-08-05 07:26:54 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-08-05 07:36:16 +0000 |
commit | 9e19a138b4410d06c9e74f20fb6fe3ddd3bdb613 (patch) | |
tree | eab03a04d106f312aab386b2a399146d582e054f /config/snort/snort_alerts.php | |
parent | 485db6093026f0e997157a70ab463683f90ca88c (diff) | |
download | pfsense-packages-9e19a138b4410d06c9e74f20fb6fe3ddd3bdb613.tar.gz pfsense-packages-9e19a138b4410d06c9e74f20fb6fe3ddd3bdb613.tar.bz2 pfsense-packages-9e19a138b4410d06c9e74f20fb6fe3ddd3bdb613.zip |
Silence some command becuase they just spam the logs uselessly.
Diffstat (limited to 'config/snort/snort_alerts.php')
-rw-r--r-- | config/snort/snort_alerts.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/config/snort/snort_alerts.php b/config/snort/snort_alerts.php index e5e85237..8e81d16a 100644 --- a/config/snort/snort_alerts.php +++ b/config/snort/snort_alerts.php @@ -89,12 +89,12 @@ if ($_POST['delete']) conf_mount_rw(); if(file_exists('/var/log/snort/alert')) { - exec('/bin/echo "" > /var/log/snort/alert'); + @file_put_content("/var/log/snort/alert", ""); post_delete_logs(); - exec('/usr/sbin/chown snort:snort /var/log/snort/*'); - exec('/bin/chmod 660 /var/log/snort/*'); + mwexec('/usr/sbin/chown snort:snort /var/log/snort/*', true); + mwexec('/bin/chmod 660 /var/log/snort/*', true); sleep(2); - exec('/usr/bin/killall -HUP snort'); + mwexec('/usr/bin/killall -HUP snort', true); } conf_mount_ro(); } |