diff --git a/install/lib/class.FroxlorInstall.php b/install/lib/class.FroxlorInstall.php index b5734124..d25eb691 100644 --- a/install/lib/class.FroxlorInstall.php +++ b/install/lib/class.FroxlorInstall.php @@ -285,7 +285,6 @@ class FroxlorInstall { $message = $this->_lng['install']['froxlor_succ_installed']; $link = '../index.php'; $linktext = $this->_lng['click_here_to_login']; - inserttask('99'); } eval("\$navigation .= \"" . $this->_getTemplate("pagebottom") . "\";"); @@ -480,6 +479,9 @@ class FroxlorInstall { $db->query("UPDATE `".TABLE_PANEL_CRONRUNS."` SET `lastrun` = '".$ts."' WHERE `cronfile` ='cron_used_tickets_reset.php';"); $db->query("UPDATE `".TABLE_PANEL_CRONRUNS."` SET `lastrun` = '".$ts."' WHERE `cronfile` ='cron_ticketarchive.php';"); + // insert task 99 to generate a correct cron.d-file automatically + $db->query("INSERT INTO `".TABLE_PANEL_TASKS."` SET `type` = '99';"); + $content .= $this->_status_message('green', 'OK'); return $content;