move checkCrondConfigurationFile() from cron_init to cron_shutdown so a forced regeneration of the cron.d-file is being handled in the same cronrun

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2015-10-05 20:10:55 +02:00
parent d226af5314
commit 2b8a9a74be
2 changed files with 3 additions and 3 deletions

View File

@@ -219,6 +219,3 @@ $cronscriptDebug = (Settings::Get('system.debug_cron') == '1') ? true : false;
// Create a new idna converter
$idna_convert = new idna_convert_wrapper();
// check for cron.d-generation task and create it if necessary
checkCrondConfigurationFile();

View File

@@ -17,6 +17,9 @@
*
*/
// check for cron.d-generation task and create it if necessary
checkCrondConfigurationFile();
if (Settings::Get('logger.log_cron') == '1') {
$cronlog->setCronLog(0);
fwrite($debugHandler, 'Logging for cron has been shutdown' . "\n");