From 40b9bd13cf701203cdeead964d0613d1573c5465 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Thu, 04 Oct 2012 05:38:02 -0400 Subject: [PATCH] Fixed: FS#2449 - Appended \t#domain to cron jobs breaks certain commands --- server/plugins-available/cron_plugin.inc.php | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/plugins-available/cron_plugin.inc.php b/server/plugins-available/cron_plugin.inc.php index 3ec4717..fd83331 100644 --- a/server/plugins-available/cron_plugin.inc.php +++ b/server/plugins-available/cron_plugin.inc.php @@ -198,7 +198,7 @@ if($job['run_month'] == '@reboot') { $command = "@reboot"; } else { - $command = "{$job['run_min']}\t{$job['run_hour']}\t{$job['run_mday']}\t{$job['run_month']}\t{$job['run_wday']}"; + $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']); } $command .= "\t{$this->parent_domain['system_user']}"; //* running as user if($job['type'] == 'url') { @@ -217,10 +217,10 @@ } if($job['type'] == 'chrooted') { - $chr_cron_content .= $command . "\t#{$job['domain']}\n"; + $chr_cron_content .= $command . " #{$job['domain']}\n"; $chr_cmd_count++; } else { - $cron_content .= $command . "\t#{$job['domain']}\n"; + $cron_content .= $command . " #{$job['domain']}\n"; $cmd_count++; } } -- Gitblit v1.9.1