Skip to content
Permalink
Browse files

Setup: create config directory recursively like mkdir -p

refs #10126
  • Loading branch information
Al2Klimov committed Dec 18, 2015
1 parent 643ee7b commit fd2901c4cc9db880e7b69ad963191d389fbeecdb
@@ -54,7 +54,7 @@ public function directoryAction()
));
}
if (! file_exists($configDir) && ! @mkdir($configDir)) {
if (! file_exists($configDir) && ! @mkdir($configDir, 0777, true)) {
$e = error_get_last();
$this->fail(sprintf(
$this->translate('Can\'t create configuration directory %s: %s'),
@@ -29,7 +29,7 @@ public function apply()
$success = true;
foreach ($this->paths as $path) {
if (false === file_exists($path)) {
if (false === @mkdir($path)) {
if (false === @mkdir($path, 0777, true)) {
$this->errors[$path] = error_get_last();
$success = false;
} else {

0 comments on commit fd2901c

Please sign in to comment.
You can’t perform that action at this time.