From 20d54d5a04474bd9e00a6f6e531493ebf946d604 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Fri, 14 Feb 2014 11:18:02 +0100 Subject: [PATCH] put cron.d-generation task directly to froxlor.sql as there might be no userdata.inc.php after the installation (only in /tmp or plaintext for copy'n'paste) so the database action fails Signed-off-by: Michael Kaufmann (d00p) --- install/froxlor.sql | 1 + install/lib/class.FroxlorInstall.php | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/install/froxlor.sql b/install/froxlor.sql index d17bed60..d17e6555 100644 --- a/install/froxlor.sql +++ b/install/froxlor.sql @@ -539,6 +539,7 @@ CREATE TABLE `panel_tasks` ( PRIMARY KEY (`id`) ) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci; +INSERT INTO `panel_tasks` (`type`) VALUES ('99'); DROP TABLE IF EXISTS `panel_templates`; diff --git a/install/lib/class.FroxlorInstall.php b/install/lib/class.FroxlorInstall.php index 4e44d746..a3742b94 100644 --- a/install/lib/class.FroxlorInstall.php +++ b/install/lib/class.FroxlorInstall.php @@ -284,7 +284,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") . "\";");