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:
Eric Lippmann 2014-12-30 15:56:42 +01:00
parent 90fb44122b
commit 865b5c126a
1 changed files with 0 additions and 5 deletions

View File

@ -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(