Merge branch 'master' of github.com:Froxlor/Froxlor

This commit is contained in:
Roman Schmerold (BNoiZe)
2014-04-14 09:49:37 +02:00
2 changed files with 10 additions and 1 deletions

View File

@@ -95,6 +95,8 @@ function checkCrondConfigurationFile() {
// oh snap cannot create new crond-file
die("Oh snap, we cannot create the cron.d file. This should not happen.\nPlease check the path and permissions, the cron will keep trying if you don't stop the cron-service.\n\n");
}
// correct permissions
chmod(Settings::Get("system.cronconfig"), 0640);
// remove all re-generation tasks
Database::query("DELETE FROM `" . TABLE_PANEL_TASKS . "` WHERE `type` = '99'");