From: Jakob Sack Date: Fri, 10 Aug 2012 12:03:26 +0000 (+0200) Subject: Backgroundjobs: don't execute cron.php if owncloud has not been installed X-Git-Tag: v4.5.0beta1~74^2~134 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0de81f9dad5bfba01f01d468eb0fd1f452354792;p=nextcloud-server.git Backgroundjobs: don't execute cron.php if owncloud has not been installed --- 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');