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:
commit
cfaee93552
3
cron.php
3
cron.php
|
@ -58,6 +58,9 @@ try {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (OC::$CLI) {
|
if (OC::$CLI) {
|
||||||
|
// set to run indefinitely if needed
|
||||||
|
set_time_limit(0);
|
||||||
|
|
||||||
$config = OC::$server->getConfig();
|
$config = OC::$server->getConfig();
|
||||||
$instanceId = $config->getSystemValue('instanceid');
|
$instanceId = $config->getSystemValue('instanceid');
|
||||||
$lockFileName = 'owncloud-server-' . $instanceId . '-cron.lock';
|
$lockFileName = 'owncloud-server-' . $instanceId . '-cron.lock';
|
||||||
|
|
Loading…
Reference in New Issue