From de80e3797b1944931b2ecf668f3960b329ae98f0 Mon Sep 17 00:00:00 2001 From: Lukas Metzger Date: Thu, 10 May 2018 20:04:11 +0200 Subject: [PATCH] Fixed bug where setup stored hard coded config to config file --- backend/src/controllers/Setup.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 = '