From b4cf6e62bf4e66266a5101a45de69e1420fdb161 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thomas=20M=C3=BCller?= <thomas.mueller@tmit.eu>
Date: Wed, 11 Mar 2015 01:09:12 +0100
Subject: [PATCH] cron.php on cli has no time limitation - fixes #14481

---
 cron.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cron.php b/cron.php
index e5b1276899..0595cece4f 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';
-- 
GitLab