fix: Allow to install on database error.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2022-06-18 19:33:46 +02:00
parent 7ad4ed42b0
commit 38b036cc2f
3 changed files with 29 additions and 4 deletions

View File

@@ -38,7 +38,9 @@ final class IndexController extends ControllerBase
{
public function indexAction(): void
{
if ($this->configData->isInstalled()) {
$skipInstalled = $this->request->analyzeBool('skipInstalled', false);
if ($skipInstalled === false && $this->configData->isInstalled()) {
$this->router->response()->redirect('index.php?r=login');
return;