mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 14:54:24 +02:00
cli/setup: Do not translate \n
This commit is contained in:
parent
672500029c
commit
9c40372b61
@ -41,6 +41,11 @@ class ConfigCommand extends Command
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (file_exists($configDir)) {
|
||||||
|
printf($this->translate('Configuration directory already exists at: %s') . PHP_EOL, $configDir);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
$group = trim($this->params->get('group', 'icingaweb2'));
|
$group = trim($this->params->get('group', 'icingaweb2'));
|
||||||
if (strlen($group) === 0) {
|
if (strlen($group) === 0) {
|
||||||
$this->fail($this->translate(
|
$this->fail($this->translate(
|
||||||
@ -55,11 +60,6 @@ class ConfigCommand extends Command
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (file_exists($configDir)) {
|
|
||||||
printf($this->translate("Configuration directory already exists at: %s\n"), $configDir);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
$mode = octdec($mode);
|
$mode = octdec($mode);
|
||||||
if (false === mkdir($configDir)) {
|
if (false === mkdir($configDir)) {
|
||||||
$this->fail(sprintf($this->translate('Unable to create path: %s'), $configDir));
|
$this->fail(sprintf($this->translate('Unable to create path: %s'), $configDir));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user