mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 14:54:24 +02:00
Merge pull request #3261 from Icinga/bugfix/icingacli-no-setup-module-2705
Make icingacli working without the setup module
This commit is contained in:
commit
c18038f166
@ -460,11 +460,15 @@ abstract class ApplicationBootstrap
|
|||||||
{
|
{
|
||||||
if (! @file_exists($this->config->resolvePath('authentication.ini'))) {
|
if (! @file_exists($this->config->resolvePath('authentication.ini'))) {
|
||||||
$this->requiresSetup = true;
|
$this->requiresSetup = true;
|
||||||
|
if ($this->moduleManager->hasInstalled('setup')) {
|
||||||
$this->moduleManager->loadModule('setup');
|
$this->moduleManager->loadModule('setup');
|
||||||
|
}
|
||||||
} elseif ($this->setupTokenExists()) {
|
} elseif ($this->setupTokenExists()) {
|
||||||
// Load setup module but do not require setup
|
// Load setup module but do not require setup
|
||||||
|
if ($this->moduleManager->hasInstalled('setup')) {
|
||||||
$this->moduleManager->loadModule('setup');
|
$this->moduleManager->loadModule('setup');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user