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

View file

@ -91,10 +91,11 @@ class Setup
// Save config file // Save config file
$config = [ $config = [
'db' => [ 'db' => [
'host' => 'mysql.dmz.intranet', 'host' => $db['host'],
'user' => 'pdnsnew', 'user' => $db['user'],
'password' => 'pdnsnew', 'password' => $db['password'],
'dbname' => 'pdnsnew' 'dbname' => $db['database'],
'port' => intval($db['port'])
] ]
]; ];
$configFile = '<?php' . "\n\n" . 'return ' . var_export($config, true) . ';'; $configFile = '<?php' . "\n\n" . 'return ' . var_export($config, true) . ';';