mirror of
https://github.com/loewexy/pdnsmanager.git
synced 2025-01-15 18:52:20 +01:00
Fixed bug where setup stored hard coded config to config file
This commit is contained in:
parent
67d3981694
commit
de80e3797b
1 changed files with 5 additions and 4 deletions
|
@ -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) . ';';
|
||||
|
|
Loading…
Reference in a new issue