diff --git a/backend/src/controllers/Setup.php b/backend/src/controllers/Setup.php index b8b79f0..e1ef970 100644 --- a/backend/src/controllers/Setup.php +++ b/backend/src/controllers/Setup.php @@ -91,10 +91,11 @@ class Setup // Save config file $config = [ 'db' => [ - 'host' => 'mysql.dmz.intranet', - 'user' => 'pdnsnew', - 'password' => 'pdnsnew', - 'dbname' => 'pdnsnew' + 'host' => $db['host'], + 'user' => $db['user'], + 'password' => $db['password'], + 'dbname' => $db['database'], + 'port' => intval($db['port']) ] ]; $configFile = '