From 0de81f9dad5bfba01f01d468eb0fd1f452354792 Mon Sep 17 00:00:00 2001 From: Jakob Sack Date: Fri, 10 Aug 2012 14:03:26 +0200 Subject: Backgroundjobs: don't execute cron.php if owncloud has not been installed --- cron.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cron.php') 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'); -- cgit v1.2.3