Make icingacli working without the setup module

This enables users to install only the icingacli package

refs #2705
This commit is contained in:
Alexander A. Klimov 2018-01-16 12:21:42 +01:00
parent 5cb7deda20
commit 8cbd506459
1 changed files with 6 additions and 2 deletions

View File

@ -460,11 +460,15 @@ abstract class ApplicationBootstrap
{
if (! @file_exists($this->config->resolvePath('authentication.ini'))) {
$this->requiresSetup = true;
if ($this->moduleManager->hasInstalled('setup')) {
$this->moduleManager->loadModule('setup');
}
} elseif ($this->setupTokenExists()) {
// Load setup module but do not require setup
if ($this->moduleManager->hasInstalled('setup')) {
$this->moduleManager->loadModule('setup');
}
}
return $this;
}