summaryrefslogtreecommitdiffstats
path: root/lib/private/setup.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-01-26 18:50:41 +0100
committerMorris Jobke <hey@morrisjobke.de>2016-01-26 18:50:41 +0100
commite43aaf4a15a56ec93d347c797cd4e7ef7691aef5 (patch)
tree442b2645347a4a0ee069b0292e459b8b19fa28e4 /lib/private/setup.php
parentdb788a382c94b86f62980bc41945b8ea6825f59e (diff)
downloadnextcloud-server-e43aaf4a15a56ec93d347c797cd4e7ef7691aef5.tar.gz
nextcloud-server-e43aaf4a15a56ec93d347c797cd4e7ef7691aef5.zip
Avoid error message in log during setup because of existing data dir
Diffstat (limited to 'lib/private/setup.php')
-rw-r--r--lib/private/setup.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/setup.php b/lib/private/setup.php
index a96dade0665..b9f8828227e 100644
--- a/lib/private/setup.php
+++ b/lib/private/setup.php
@@ -194,7 +194,9 @@ class Setup {
// Create data directory to test whether the .htaccess works
// Notice that this is not necessarily the same data directory as the one
// that will effectively be used.
- @mkdir($dataDir);
+ if(!file_exists($dataDir)) {
+ @mkdir($dataDir);
+ }
$htAccessWorking = true;
if (is_dir($dataDir) && is_writable($dataDir)) {
// Protect data directory here, so we can test if the protection is working