mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Fixes for self host installer
This commit is contained in:
parent
edf73b2b18
commit
a9681e80e2
@ -180,12 +180,12 @@ class SystemHealth
|
||||
$result = ['success' => false];
|
||||
|
||||
if ($request && !config('ninja.preconfigured_install')) {
|
||||
config(['database.connections.db-ninja-01.host' => $request->input('db_host')]);
|
||||
config(['database.connections.db-ninja-01.port' => $request->input('db_port')]);
|
||||
config(['database.connections.db-ninja-01.database' => $request->input('db_database')]);
|
||||
config(['database.connections.db-ninja-01.username' => $request->input('db_username')]);
|
||||
config(['database.connections.db-ninja-01.password' => $request->input('db_password')]);
|
||||
config(['database.default' => 'db-ninja-01']);
|
||||
config(['database.connections.mysql.host' => $request->input('db_host')]);
|
||||
config(['database.connections.mysql.port' => $request->input('db_port')]);
|
||||
config(['database.connections.mysql.database' => $request->input('db_database')]);
|
||||
config(['database.connections.mysql.username' => $request->input('db_username')]);
|
||||
config(['database.connections.mysql.password' => $request->input('db_password')]);
|
||||
config(['database.default' => 'mysql']);
|
||||
|
||||
DB::purge('db-ninja-01');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user