Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Sack <mail@jakobsack.de>2012-08-10 16:03:26 +0400
committerJakob Sack <mail@jakobsack.de>2012-08-10 16:03:26 +0400
commit0de81f9dad5bfba01f01d468eb0fd1f452354792 (patch)
treeea71eceddd14135dda83086ecaf4ee0ffa042d7a /cron.php
parent0ea4fa298c20a1cb25223b2bcaa5152c7a0f52dd (diff)
Backgroundjobs: don't execute cron.php if owncloud has not been installed
Diffstat (limited to 'cron.php')
-rw-r--r--cron.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/cron.php b/cron.php
index c52a5035091..1e0bb5f6dcd 100644
--- 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');