diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-09-29 12:22:20 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-09-29 12:22:20 +0200 |
commit | a8ed427515a925b1f768c4eac8ce24b879de26b5 (patch) | |
tree | 0e48870a05506096f73e4b7afd386663daa269f3 /core | |
parent | 63726ea9e23f88fbb069e71d9dbd326144097818 (diff) | |
parent | c20d629836ca98dd57c4b323edf05612b18a5d37 (diff) | |
download | nextcloud-server-a8ed427515a925b1f768c4eac8ce24b879de26b5.tar.gz nextcloud-server-a8ed427515a925b1f768c4eac8ce24b879de26b5.zip |
Merge pull request #11324 from owncloud/tryToCreateDatadirectory
Try to create datadirectory to test whether the .htaccess works
Diffstat (limited to 'core')
-rw-r--r-- | core/setup/controller.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/setup/controller.php b/core/setup/controller.php index 15679e33976..53f247e9769 100644 --- a/core/setup/controller.php +++ b/core/setup/controller.php @@ -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. + @mkdir($datadir); + if (is_dir($datadir) && 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) { |