mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
Don't test for htaccess if we cant write into the datadir anyway
This commit is contained in:
parent
c8dbdc29d0
commit
6ff29f3874
1 changed files with 12 additions and 10 deletions
|
|
@ -119,16 +119,18 @@ class Controller {
|
|||
|
||||
$errors = array();
|
||||
|
||||
// Protect data directory here, so we can test if the protection is working
|
||||
\OC_Setup::protectDataDirectory();
|
||||
try {
|
||||
$htaccessWorking = \OC_Util::isHtaccessWorking();
|
||||
} catch (\OC\HintException $e) {
|
||||
$errors[] = array(
|
||||
'error' => $e->getMessage(),
|
||||
'hint' => $e->getHint()
|
||||
);
|
||||
$htaccessWorking = false;
|
||||
if (is_dir($datadir) and is_writable($datadir)) {
|
||||
// Protect data directory here, so we can test if the protection is working
|
||||
\OC_Setup::protectDataDirectory();
|
||||
try {
|
||||
$htaccessWorking = \OC_Util::isHtaccessWorking();
|
||||
} catch (\OC\HintException $e) {
|
||||
$errors[] = array(
|
||||
'error' => $e->getMessage(),
|
||||
'hint' => $e->getHint()
|
||||
);
|
||||
$htaccessWorking = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (\OC_Util::runningOnMac()) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue