diff --git a/library/Icinga/Application/WebSetup.php b/library/Icinga/Application/WebSetup.php index bfdfe27cd..82a9c59c9 100644 --- a/library/Icinga/Application/WebSetup.php +++ b/library/Icinga/Application/WebSetup.php @@ -130,8 +130,12 @@ class WebSetup extends Wizard implements SetupWizard $skip = true; } } catch (PDOException $e) { - $db->connectToHost(); - $skip = $db->checkPrivileges($this->databaseSetupPrivileges); + try { + $db->connectToHost(); + $skip = $db->checkPrivileges($this->databaseSetupPrivileges); + } catch (PDOException $e) { + // skip should already be false, nothing to do + } } } else { $skip = true;