summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-03-11 09:23:22 +0100
committerMorris Jobke <hey@morrisjobke.de>2015-03-11 09:23:22 +0100
commitcfaee93552b519b8e017e63fd5a82b1e5c9f951b (patch)
tree86e1f184ecf4aa90671f8a30f3e9bcdb96c0584e
parent01ea056ac8ad46ea59c56ca8c9aa7e7c90564bc4 (diff)
parentb4cf6e62bf4e66266a5101a45de69e1420fdb161 (diff)
downloadnextcloud-server-cfaee93552b519b8e017e63fd5a82b1e5c9f951b.tar.gz
nextcloud-server-cfaee93552b519b8e017e63fd5a82b1e5c9f951b.zip
Merge pull request #14783 from owncloud/dont-timeout-cron-master
cron.php on cli has no time limitation - fixes #14481
-rw-r--r--cron.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/cron.php b/cron.php
index e5b12768992..0595cece4f8 100644
--- a/cron.php
+++ b/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';