mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
parent
643ee7b108
commit
fd2901c4cc
@ -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'),
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user