Merge pull request #14783 from owncloud/dont-timeout-cron-master

cron.php on cli has no time limitation - fixes #14481
This commit is contained in:
Morris Jobke 2015-03-11 09:23:22 +01:00
commit cfaee93552
1 changed files with 3 additions and 0 deletions

View File

@ -58,6 +58,9 @@ try {
}
if (OC::$CLI) {
// set to run indefinitely if needed
set_time_limit(0);
$config = OC::$server->getConfig();
$instanceId = $config->getSystemValue('instanceid');
$lockFileName = 'owncloud-server-' . $instanceId . '-cron.lock';