Skip to content

Commit a25dd9b

Browse files
author
Till Brehm
committed
Merge branch '6574-avoid-no-crontab-for' into 'develop'
Avoid "no crontab for ..." message Closes #6574 See merge request ispconfig/ispconfig3!1803
2 parents de2879c + af5bdb6 commit a25dd9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install/lib/installer_base.lib.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3927,7 +3927,7 @@ public function install_crontab() {
39273927
$install_dir = $conf['ispconfig_install_dir'];
39283928

39293929
//* Root Crontab
3930-
exec('crontab -u root -l > crontab.txt');
3930+
exec('crontab -u root -l > crontab.txt 2>/dev/null');
39313931
$existing_root_cron_jobs = file('crontab.txt');
39323932

39333933
// remove existing ispconfig cronjobs, in case the syntax has changed
@@ -3956,7 +3956,7 @@ public function install_crontab() {
39563956
//* Getmail crontab
39573957
if(is_user('getmail')) {
39583958
$cf = $conf['getmail'];
3959-
exec('crontab -u getmail -l > crontab.txt');
3959+
exec('crontab -u getmail -l > crontab.txt 2>/dev/null');
39603960
$existing_cron_jobs = file('crontab.txt');
39613961

39623962
$cron_jobs = array(

0 commit comments

Comments
 (0)