Skip to content
Snippets Groups Projects
Commit e43aaf4a authored by Morris Jobke's avatar Morris Jobke
Browse files

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

parent db788a38
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment