From 37624a912e83fcb3149ecfd85bc9dd0f084515c6 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Fri, 12 Sep 2014 07:50:05 +0200 Subject: [PATCH] add task 99 the correct way in installation as the constant FROXLOR_INSTALL_DIR is not set there Signed-off-by: Michael Kaufmann (d00p) --- install/lib/class.FroxlorInstall.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;