add task 99 the correct way in installation as the constant FROXLOR_INSTALL_DIR is not set there
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -285,7 +285,6 @@ class FroxlorInstall {
|
|||||||
$message = $this->_lng['install']['froxlor_succ_installed'];
|
$message = $this->_lng['install']['froxlor_succ_installed'];
|
||||||
$link = '../index.php';
|
$link = '../index.php';
|
||||||
$linktext = $this->_lng['click_here_to_login'];
|
$linktext = $this->_lng['click_here_to_login'];
|
||||||
inserttask('99');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
eval("\$navigation .= \"" . $this->_getTemplate("pagebottom") . "\";");
|
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_used_tickets_reset.php';");
|
||||||
$db->query("UPDATE `".TABLE_PANEL_CRONRUNS."` SET `lastrun` = '".$ts."' WHERE `cronfile` ='cron_ticketarchive.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');
|
$content .= $this->_status_message('green', 'OK');
|
||||||
|
|
||||||
return $content;
|
return $content;
|
||||||
|
|||||||
Reference in New Issue
Block a user