mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 18:38:25 +00:00
Fixed web installer to allow users to change db creds if we can't connect (#9126)
This commit is contained in:
parent
f5f964fd65
commit
a8f10deee5
@ -52,6 +52,10 @@ if ($stage > 1) {
|
||||
try {
|
||||
if ($stage != 6) {
|
||||
dbConnect($dbhost, $dbuser, $dbpass, $dbname, $dbport, $dbsocket);
|
||||
if (dbIsConnected() === false) {
|
||||
$msg = "We could not connect to your database, please check the details and try again";
|
||||
$stage = 1;
|
||||
}
|
||||
}
|
||||
if ($stage == 2 && $_SESSION['build-ok'] == true) {
|
||||
$stage = 3;
|
||||
|
Loading…
Reference in New Issue
Block a user