mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Avoid error message in log during setup because of existing data dir
This commit is contained in:
parent
db788a382c
commit
e43aaf4a15
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Reference in a new issue