aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_check_for_rule_updates.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-08-05 07:26:54 +0000
committerErmal <eri@pfsense.org>2011-08-05 07:36:16 +0000
commit9e19a138b4410d06c9e74f20fb6fe3ddd3bdb613 (patch)
treeeab03a04d106f312aab386b2a399146d582e054f /config/snort/snort_check_for_rule_updates.php
parent485db6093026f0e997157a70ab463683f90ca88c (diff)
downloadpfsense-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_check_for_rule_updates.php')
-rw-r--r--config/snort/snort_check_for_rule_updates.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/config/snort/snort_check_for_rule_updates.php b/config/snort/snort_check_for_rule_updates.php
index 596ba09e..cb85e0ef 100644
--- a/config/snort/snort_check_for_rule_updates.php
+++ b/config/snort/snort_check_for_rule_updates.php
@@ -673,12 +673,12 @@ if (is_dir('/usr/local/etc/snort/tmp')) {
}
/* make all dirs snorts */
-exec("/usr/sbin/chown -R snort:snort /var/log/snort");
-exec("/usr/sbin/chown -R snort:snort /usr/local/etc/snort");
-exec("/usr/sbin/chown -R snort:snort /usr/local/lib/snort");
-exec("/bin/chmod -R 755 /var/log/snort");
-exec("/bin/chmod -R 755 /usr/local/etc/snort");
-exec("/bin/chmod -R 755 /usr/local/lib/snort");
+mwexec("/usr/sbin/chown -R snort:snort /var/log/snort", true);
+mwexec("/usr/sbin/chown -R snort:snort /usr/local/etc/snort", true);
+mwexec("/usr/sbin/chown -R snort:snort /usr/local/lib/snort", true);
+mwexec("/bin/chmod -R 755 /var/log/snort", true);
+mwexec("/bin/chmod -R 755 /usr/local/etc/snort", true);
+mwexec("/bin/chmod -R 755 /usr/local/lib/snort", true);
if ($snortdownload == 'off' && $emergingthreats == 'off' && $pfsensedownload == 'off')
update_output_window(gettext("Finished..."));