mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 15:24:05 +02:00
CLI: Use a more restrict mode when creating the config directory resursively
refs #10126
This commit is contained in:
parent
594eb366f2
commit
a14481a96b
@ -54,7 +54,7 @@ class ConfigCommand extends Command
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! file_exists($configDir) && ! @mkdir($configDir, 0777, true)) {
|
if (! file_exists($configDir) && ! @mkdir($configDir, 0755, true)) {
|
||||||
$e = error_get_last();
|
$e = error_get_last();
|
||||||
$this->fail(sprintf(
|
$this->fail(sprintf(
|
||||||
$this->translate('Can\'t create configuration directory %s: %s'),
|
$this->translate('Can\'t create configuration directory %s: %s'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user