Skip to content

Commit 986f1c4

Browse files
author
redray
committed
cron errors got to logfile now - bugfix
1 parent 9eef028 commit 986f1c4

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

install/lib/installer_base.lib.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,12 +1042,9 @@ public function install_crontab()
10421042
if(stristr($val,'/usr/local/ispconfig')) unset($existing_root_cron_jobs[$key]);
10431043
}
10441044

1045-
// Crontab must end with an empty line or comment!
10461045
$root_cron_jobs = array(
1047-
'# --- ISPConfig ----',
1048-
'* * * * * /usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/var/log/ispconfig/cron.log',
1049-
'30 00 * * * /usr/local/ispconfig/server/cron_daily.sh > /dev/null 2>> /var/log/var/log/ispconfig/cron.log',
1050-
'# ------------------'
1046+
'* * * * * /usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log',
1047+
'30 00 * * * /usr/local/ispconfig/server/cron_daily.sh > /dev/null 2>> /var/log/ispconfig/cron.log'
10511048
);
10521049
foreach($root_cron_jobs as $cron_job) {
10531050
if(!in_array($cron_job."\n", $existing_root_cron_jobs)) {
@@ -1064,11 +1061,8 @@ public function install_crontab()
10641061
exec('crontab -u getmail -l > crontab.txt');
10651062
$existing_cron_jobs = file('crontab.txt');
10661063

1067-
// Crontab must end with an empty line or comment!
10681064
$cron_jobs = array(
1069-
'# --- ISPConfig ----',
1070-
'*/5 * * * * '.$cf['program'].' -g '.$cf['config_dir'].' -r '.$cf['config_dir'].'/*.conf > /dev/null 2>> /var/log/var/log/ispconfig/cron.log',
1071-
'# ------------------'
1065+
'*/5 * * * * '.$cf['program'].' -g '.$cf['config_dir'].' -r '.$cf['config_dir'].'/*.conf > /dev/null 2>> /var/log/ispconfig/cron.log'
10721066
);
10731067

10741068
// remove existing ispconfig cronjobs, in case the syntax has changed

0 commit comments

Comments
 (0)