From 9e19a138b4410d06c9e74f20fb6fe3ddd3bdb613 Mon Sep 17 00:00:00 2001 From: Ermal Date: Fri, 5 Aug 2011 07:26:54 +0000 Subject: Silence some command becuase they just spam the logs uselessly. --- config/snort/snort_alerts.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'config/snort/snort_alerts.php') 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(); } -- cgit v1.2.3