Merge pull request #21930 from owncloud/less-error-messages

Avoid error message in log during setup because of existing data dir
This commit is contained in:
Thomas Müller 2016-01-27 09:34:09 +01:00
commit 0fffc3a0de

View file

@ -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