From: Moritz Bunkus Date: Mon, 3 Jan 2011 15:09:45 +0000 (+0100) Subject: Datenbankadministration: Verbindungsinformationen mit Daten aus config/authentication... X-Git-Tag: release-2.6.2beta1~6^2~6 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=8a86b3b7673fdeca40cbeab8be4456887e83a177;p=kivitendo-erp.git Datenbankadministration: Verbindungsinformationen mit Daten aus config/authentication.pl vorbelegen Betrifft Hostnamen, Port und Datenbankbenutzer. Datenbankvorlage bleibt auf 'template1'. --- diff --git a/bin/mozilla/admin.pl b/bin/mozilla/admin.pl index 2819da00e..7bb498c6e 100755 --- a/bin/mozilla/admin.pl +++ b/bin/mozilla/admin.pl @@ -650,10 +650,10 @@ sub dbselect_source { my $form = $main::form; my $locale = $main::locale; - $form->{dbport} = '5432'; - $form->{dbuser} = 'lxoffice'; + $form->{dbport} = $::auth->{DB_config}->{port} || 5432; + $form->{dbuser} = $::auth->{DB_config}->{user} || 'lxoffice'; $form->{dbdefault} = 'template1'; - $form->{dbhost} = 'localhost'; + $form->{dbhost} = $::auth->{DB_config}->{host} || 'localhost'; $form->{title} = "Lx-Office ERP / " . $locale->text('Database Administration');