Skip to content

Commit cfd412e

Browse files
author
Jon Reese
committed
detect crontab early with friendly fail ref: ispconfig/ispconfig3#5885
1 parent fa5ed54 commit cfd412e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

install/install.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,11 @@
172172
//** Detect the installed applications
173173
$inst->find_installed_apps();
174174

175+
//* crontab required by ISPConfig
176+
if(!$conf['cron']['installed']) {
177+
die("crontab not found; please install a compatible cron daemon before ISPConfig\n\n");
178+
}
179+
175180
//** Select the language and set default timezone
176181
$conf['language'] = $inst->simple_query('Select language', array('en', 'de'), 'en','language');
177182
$conf['timezone'] = get_system_timezone();
@@ -607,10 +612,7 @@
607612

608613
//* Configure ISPConfig
609614
swriteln('Installing ISPConfig crontab');
610-
if($conf['cron']['installed']) {
611-
swriteln('Installing ISPConfig crontab');
612-
$inst->install_crontab();
613-
} else swriteln('[ERROR] Cron not found');
615+
$inst->install_crontab();
614616

615617
swriteln('Detect IP addresses');
616618
$inst->detect_ips();

0 commit comments

Comments
 (0)