Skip to content

Commit 03ed866

Browse files
committed
Revert earlier, just default log_target to empty string, cron discards the output anyway.
1 parent df09183 commit 03ed866

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

server/plugins-available/cron_plugin.inc.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ function _write_crontab() {
224224
$command = str_replace(" ", "", $job['run_min']) . "\t" . str_replace(" ", "", $job['run_hour']) . "\t" . str_replace(" ", "", $job['run_mday']) . "\t" . str_replace(" ", "", $job['run_month']) . "\t" . str_replace(" ", "", $job['run_wday']);
225225
}
226226

227-
$log_target = ">/dev/null 2>&1";
227+
$log_target = "";
228228
$log_wget_target = '/dev/null';
229229
$log_root = '';
230230
if($job['log'] == 'y') {
@@ -259,13 +259,7 @@ function _write_crontab() {
259259

260260
$command .= "\t";
261261
//if($job['type'] != 'chrooted' && substr($job['command'], 0, 1) != "/") $command .= $this->parent_domain['document_root'].'/';
262-
263-
$command .= $job['command'];
264-
265-
// Add a default log target when no redirection is included in the command.
266-
if (!preg_match('/>/', $job['command'])) {
267-
$command .= " " . $log_target;
268-
}
262+
$command .= $job['command'] . " " . $log_target;
269263
}
270264

271265
if($job['type'] == 'chrooted') {

0 commit comments

Comments
 (0)