diff --git a/install/dist/lib/fedora.lib.php b/install/dist/lib/fedora.lib.php index 0a096e0e077475f6ef62d056f9bdf1e041c72895..ff78351d263b665861d353021703623f2cd68357 100644 --- a/install/dist/lib/fedora.lib.php +++ b/install/dist/lib/fedora.lib.php @@ -770,11 +770,11 @@ class installer_dist extends installer_base { exec('crontab -u getmail -l > crontab.txt'); $existing_cron_jobs = file('crontab.txt'); - $cron_jobs = array('*/5 * * * * '.$cf['program'].' -g '.$cf['config_dir'].' -r '.$cf['config_dir'].'/*.conf &> /dev/null'); + $cron_jobs = array('*/5 * * * * '.$cf['program'].' -n -g '.$cf['config_dir'].' -r '.$cf['config_dir'].'/*.conf &> /dev/null'); // remove existing ispconfig cronjobs, in case the syntax has changed foreach($cron_jobs as $key => $val) { - if(stristr($val,$cf['program'])) unset($cron_jobs[$key]); + if(stristr($val,$cf['program'])) unset($existing_cron_jobs[$key]); } foreach($cron_jobs as $cron_job) { @@ -786,6 +786,9 @@ class installer_dist extends installer_base { exec('crontab -u getmail crontab.txt &> /dev/null'); unlink('crontab.txt'); } + + exec('touch /var/log/ispconfig/cron.log'); + exec('chmod +666 /var/log/ispconfig/cron.log'); } } diff --git a/install/dist/lib/opensuse.lib.php b/install/dist/lib/opensuse.lib.php index c499653d8012ac2318c2140cdaacf1afc903d906..35c765c3ca4674b14e3d41a6ec3f78a492512b74 100644 --- a/install/dist/lib/opensuse.lib.php +++ b/install/dist/lib/opensuse.lib.php @@ -789,11 +789,11 @@ class installer_dist extends installer_base { exec('crontab -u getmail -l > crontab.txt'); $existing_cron_jobs = file('crontab.txt'); - $cron_jobs = array('*/5 * * * * '.$cf['program'].' -g '.$cf['config_dir'].' -r '.$cf['config_dir'].'/*.conf &> /dev/null'); + $cron_jobs = array('*/5 * * * * '.$cf['program'].' -n -g '.$cf['config_dir'].' -r '.$cf['config_dir'].'/*.conf &> /dev/null'); // remove existing ispconfig cronjobs, in case the syntax has changed foreach($cron_jobs as $key => $val) { - if(stristr($val,$cf['program'])) unset($cron_jobs[$key]); + if(stristr($val,$cf['program'])) unset($existing_cron_jobs[$key]); } foreach($cron_jobs as $cron_job) { @@ -805,6 +805,9 @@ class installer_dist extends installer_base { exec('crontab -u getmail crontab.txt &> /dev/null'); unlink('crontab.txt'); } + + exec('touch /var/log/ispconfig/cron.log'); + exec('chmod +666 /var/log/ispconfig/cron.log'); } }