Commit a8ed4275 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Merge pull request #11324 from owncloud/tryToCreateDatadirectory

Try to create datadirectory to test whether the .htaccess works
parents 63726ea9 c20d6298
......@@ -116,9 +116,14 @@ class Controller {
$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.
if (is_dir($datadir) && is_writable($datadir)) {
// Protect data directory here, so we can test if the protection is working
try {
$htaccessWorking = \OC_Util::isHtaccessWorking();
} catch (\OC\HintException $e) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment