Skip to content

Commit 3b146a4

Browse files
committed
Redirect output, otherwise ends up polluting cron.log
1 parent 6200640 commit 3b146a4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

server/lib/classes/cron.d/100-monitor_iptables.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function onRunJob() {
6767
$type = 'iptables_rules';
6868

6969
/* This monitoring is only available if fail2ban is installed */
70-
system('which iptables', $retval); // Debian, Ubuntu, Fedora
70+
system('which iptables > /dev/null', $retval); // Debian, Ubuntu, Fedora
7171
if ($retval === 0) {
7272
/* Get the data of the log */
7373
$data['output'] = '<h2>iptables -S (ipv4)</h2>'.shell_exec('iptables -S 2>/dev/null');
@@ -83,7 +83,7 @@ public function onRunJob() {
8383

8484

8585
/* This monitoring is only available if fail2ban is installed */
86-
system('which ip6tables', $retval); // Debian, Ubuntu, Fedora
86+
system('which ip6tables > /dev/null', $retval); // Debian, Ubuntu, Fedora
8787
if ($retval === 0) {
8888
/* Get the data of the log */
8989
$data['output'] .= '<br><h2>ip6tables -S (ipv6)</h2>'.shell_exec('ip6tables -S 2>/dev/null');

server/plugins-available/backup_plugin.inc.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,4 +322,3 @@ public function backup_action_mail($action_name, $data) {
322322
} // end class
323323

324324
?>
325-

0 commit comments

Comments
 (0)