mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
cron.php on cli has no time limitation - fixes #14481
This commit is contained in:
parent
1757d01604
commit
b4cf6e62bf
1 changed files with 3 additions and 0 deletions
3
cron.php
3
cron.php
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Reference in a new issue