Fixed bug where setup stored hard coded config to config file

This commit is contained in:
Lukas Metzger 2018-05-10 20:04:11 +02:00
parent 67d3981694
commit de80e3797b
1 changed files with 5 additions and 4 deletions

View File

@ -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 = '<?php' . "\n\n" . 'return ' . var_export($config, true) . ';';