cli/setup: Do not exit setup config directory when the directory already exists
mkdir may succeed but chmod or chgrp may fail. The next time the command is called it will ll exit before trying to chmod or chgrp again because the directory already exists.
This commit is contained in:
parent
90fb44122b
commit
865b5c126a
|
@ -41,11 +41,6 @@ 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'));
|
||||
if (strlen($group) === 0) {
|
||||
$this->fail($this->translate(
|
||||
|
|
Loading…
Reference in New Issue