Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
a8ed4275
Commit
a8ed4275
authored
Sep 29, 2014
by
Lukas Reschke
Browse files
Merge pull request #11324 from owncloud/tryToCreateDatadirectory
Try to create datadirectory to test whether the .htaccess works
parents
63726ea9
c20d6298
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/setup/controller.php
View file @
a8ed4275
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment