]> source.dussan.org Git - nextcloud-server.git/commitdiff
Backgroundjobs: don't execute cron.php if owncloud has not been installed
authorJakob Sack <mail@jakobsack.de>
Fri, 10 Aug 2012 12:03:26 +0000 (14:03 +0200)
committerJakob Sack <mail@jakobsack.de>
Fri, 10 Aug 2012 12:03:26 +0000 (14:03 +0200)
cron.php

index c52a503509174554cfb3876fcb5e6423b56217cd..1e0bb5f6dcd5352f6fb4a5855ede80f23dac905e 100644 (file)
--- a/cron.php
+++ b/cron.php
@@ -39,6 +39,11 @@ function handleUnexpectedShutdown() {
 $RUNTIME_NOSETUPFS = true;
 require_once('lib/base.php');
 
+// Don't do anything if ownCloud has not been installed
+if( !OC_Config::getValue( 'installed', false )){
+       exit( 0 );
+}
+
 // Handle unexpected errors
 register_shutdown_function('handleUnexpectedShutdown');