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) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2014-08-05 18:14:04 +02:00
parent ce88d1caae
commit 2ebb5259a0
2 changed files with 3 additions and 0 deletions

View File

@@ -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;
}