From 0de81f9dad5bfba01f01d468eb0fd1f452354792 Mon Sep 17 00:00:00 2001
From: Jakob Sack <mail@jakobsack.de>
Date: Fri, 10 Aug 2012 14:03:26 +0200
Subject: [PATCH] Backgroundjobs: don't execute cron.php if owncloud has not
 been installed

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

diff --git a/cron.php b/cron.php
index c52a503509..1e0bb5f6dc 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');
 
-- 
GitLab