diff --git a/console.php b/console.php
index 6d3ab20bc16d4df67f609a598bc0ff5226c03611..cbb11d2a5fd3fbbb60d2ec632b9dceed8397e445 100644
--- a/console.php
+++ b/console.php
@@ -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;