Skip to content

Commit af5bdb6

Browse files
committed
Avoid "no crontab for ..." message
1 parent de2879c commit af5bdb6

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)