diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-09-18 14:23:38 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-09-18 14:23:38 +0200 |
commit | 6ff29f3874cac3c263c255b2c36cda5b8a1c67f1 (patch) | |
tree | 5f313c38e58fde5e3219e1dc97bc4f397a53a29f /core/setup | |
parent | c8dbdc29d028a56a9fb55ae3737434495f3e0eab (diff) | |
download | nextcloud-server-6ff29f3874cac3c263c255b2c36cda5b8a1c67f1.tar.gz nextcloud-server-6ff29f3874cac3c263c255b2c36cda5b8a1c67f1.zip |
Don't test for htaccess if we cant write into the datadir anyway
Diffstat (limited to 'core/setup')
-rw-r--r-- | core/setup/controller.php | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/core/setup/controller.php b/core/setup/controller.php index 5da94e83ccc..9dcc9acfc64 100644 --- a/core/setup/controller.php +++ b/core/setup/controller.php @@ -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()) { |