mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
cli/webserver config: Fix --config sanity check
This commit is contained in:
parent
8eb37d9d76
commit
5e812c72f1
@ -113,7 +113,7 @@ class ConfigCommand extends Command
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
$configDir = $this->params->get('config', $webserver->getConfigDir());
|
$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(
|
$this->fail($this->translate(
|
||||||
'The argument --config expects a path to Icinga Web 2\'s configuration files'
|
'The argument --config expects a path to Icinga Web 2\'s configuration files'
|
||||||
));
|
));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user