From b68397e27d3dfdebbca3d142de84e719891bdce7 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Fri, 19 Oct 2012 05:30:11 -0400
Subject: [PATCH] Changed file permissions.
---
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