Skip to content
Snippets Groups Projects
Commit c20d6298 authored by Lukas Reschke's avatar Lukas Reschke
Browse files
parent 53f6d749
Branches
No related tags found
No related merge requests found
...@@ -116,9 +116,14 @@ class Controller { ...@@ -116,9 +116,14 @@ class Controller {
$errors = array(); $errors = array();
if (is_dir($datadir) and is_writable($datadir)) { // 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 (is_dir($datadir) && is_writable($datadir)) {
// Protect data directory here, so we can test if the protection is working // Protect data directory here, so we can test if the protection is working
\OC_Setup::protectDataDirectory(); \OC_Setup::protectDataDirectory();
try { try {
$htaccessWorking = \OC_Util::isHtaccessWorking(); $htaccessWorking = \OC_Util::isHtaccessWorking();
} catch (\OC\HintException $e) { } catch (\OC\HintException $e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment