Setup: create config directory recursively like mkdir -p

refs #10126
This commit is contained in:
Alexander A. Klimov 2015-12-18 16:41:13 +01:00
parent 643ee7b108
commit fd2901c4cc
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ class ConfigCommand extends Command
));
}
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'),

View File

@ -29,7 +29,7 @@ class MakeDirStep extends Step
$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 {