From a4ad8af6e3f0247db6f74dfcddc144e91f61fe84 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 19 Jan 2017 19:49:41 -0600 Subject: Add proper default value for datadir * better safe than sorry * fixes #3091 Signed-off-by: Morris Jobke --- lib/private/Setup/Sqlite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/Setup') diff --git a/lib/private/Setup/Sqlite.php b/lib/private/Setup/Sqlite.php index 63b970be42e..4d860103b60 100644 --- a/lib/private/Setup/Sqlite.php +++ b/lib/private/Setup/Sqlite.php @@ -33,7 +33,7 @@ class Sqlite extends AbstractDatabase { } public function setupDatabase($username) { - $datadir = \OC::$server->getSystemConfig()->getValue('datadirectory'); + $datadir = \OC::$server->getSystemConfig()->getValue('datadirectory', \OC::$SERVERROOT . '/data'); //delete the old sqlite database first, might cause infinte loops otherwise if(file_exists("$datadir/owncloud.db")) { -- cgit v1.2.3