]> source.dussan.org Git - nextcloud-server.git/commitdiff
console commands shall not be limited with respect to execution time - fixes #14156
authorThomas Müller <thomas.mueller@tmit.eu>
Mon, 16 Feb 2015 08:16:32 +0000 (09:16 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Mon, 16 Feb 2015 08:16:32 +0000 (09:16 +0100)
console.php

index 6d3ab20bc16d4df67f609a598bc0ff5226c03611..cbb11d2a5fd3fbbb60d2ec632b9dceed8397e445 100644 (file)
@@ -11,6 +11,9 @@ use Symfony\Component\Console\Application;
 try {
        require_once 'lib/base.php';
 
+       // set to run indefinitely if needed
+       set_time_limit(0);
+
        // Don't do anything if ownCloud has not been installed yet
        if (!\OC::$server->getConfig()->getSystemValue('installed', false)) {
                echo "Console can only be used once ownCloud has been installed" . PHP_EOL;