From 2ebb5259a0e3fb30c6ff213345d540b72809c013 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Tue, 5 Aug 2014 18:14:04 +0200 Subject: [PATCH] after a new installation, insert a task for generating the cron.d file, also let cronjob's --force re-create the cron.d file Signed-off-by: Michael Kaufmann (d00p) --- install/lib/class.FroxlorInstall.php | 1 + scripts/froxlor_master_cronjob.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/install/lib/class.FroxlorInstall.php b/install/lib/class.FroxlorInstall.php index 47e31e03..b5734124 100644 --- a/install/lib/class.FroxlorInstall.php +++ b/install/lib/class.FroxlorInstall.php @@ -285,6 +285,7 @@ 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") . "\";"); diff --git a/scripts/froxlor_master_cronjob.php b/scripts/froxlor_master_cronjob.php index 0e3dcc1e..04af9fd6 100644 --- a/scripts/froxlor_master_cronjob.php +++ b/scripts/froxlor_master_cronjob.php @@ -47,6 +47,8 @@ for ($x = 1; $x < count($argv); $x++) { // really force re-generating of config-files by // inserting task 1 inserttask('1'); + // also regenerate cron.d-file + inserttask('99'); addToQueue($jobs_to_run, $crontasks); $lastrun_update['tasks'] = $crontasks; }