$OpenBSD: patch-lib_private_util_php,v 1.7 2014/12/12 12:34:55 ajacoutot Exp $
--- lib/private/util.php.orig	Mon Dec  8 19:34:15 2014
+++ lib/private/util.php	Fri Dec 12 13:31:20 2014
@@ -403,7 +403,7 @@ class OC_Util {
 	public static function checkServer($config) {
 		$l = \OC::$server->getL10N('lib');
 		$errors = array();
-		$CONFIG_DATADIRECTORY = $config->getSystemValue('datadirectory', OC::$SERVERROOT . '/data');
+		$CONFIG_DATADIRECTORY = $config->getSystemValue('datadirectory', '/owncloud-data');
 
 		if (!self::needUpgrade($config) && $config->getSystemValue('installed', false)) {
 			// this check needs to be done every time
@@ -1015,7 +1015,7 @@ class OC_Util {
 		$testContent = 'testcontent';
 
 		// creating a test file
-		$testFile = OC_Config::getValue( "datadirectory", OC::$SERVERROOT."/data" ).'/'.$fileName;
+		$testFile = OC_Config::getValue( "datadirectory", '/owncloud-data' ).'/'.$fileName;
 
 		if(file_exists($testFile)) {// already running this test, possible recursive call
 			return false;
