cron.php on cli has no time limitation - fixes #14481

This commit is contained in:
Thomas Müller 2015-03-11 01:09:12 +01:00
parent 1757d01604
commit b4cf6e62bf
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';