cli/webserver config: Fix --config sanity check

This commit is contained in:
Eric Lippmann 2014-12-30 14:37:34 +01:00
parent 8eb37d9d76
commit 5e812c72f1
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ class ConfigCommand extends Command
));
}
$configDir = $this->params->get('config', $webserver->getConfigDir());
if (! is_string($documentRoot) || strlen(trim($documentRoot)) === 0) {
if (! is_string($configDir) || strlen(trim($configDir)) === 0) {
$this->fail($this->translate(
'The argument --config expects a path to Icinga Web 2\'s configuration files'
));