Avoid error message in log during setup because of existing data dir

remotes/origin/comments-markallread-dav
Morris Jobke 10 years ago
parent db788a382c
commit e43aaf4a15
  1. 4
      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

Loading…
Cancel
Save