Revision fe68756c
Von Moritz Bunkus vor fast 14 Jahren hinzugefügt
SL/DB.pm | ||
---|---|---|
65 | 65 |
} elsif ($type eq 'LXOFFICE_AUTH') { |
66 | 66 |
%connect_settings = ( driver => $::myconfig{dbdriver} || 'Pg', |
67 | 67 |
database => $::auth->{DB_config}->{db}, |
68 |
host => $::auth->{DB_config}->{host}, |
|
68 |
host => $::auth->{DB_config}->{host} || 'localhost',
|
|
69 | 69 |
port => $::auth->{DB_config}->{port} || 5432, |
70 | 70 |
username => $::auth->{DB_config}->{user}, |
71 | 71 |
password => $::auth->{DB_config}->{password}, |
... | ... | |
79 | 79 |
|
80 | 80 |
%connect_settings = ( driver => $::myconfig{dbdriver} || 'Pg', |
81 | 81 |
database => $::myconfig{dbname}, |
82 |
host => $::myconfig{dbhost}, |
|
82 |
host => $::myconfig{dbhost} || 'localhost',
|
|
83 | 83 |
port => $::myconfig{dbport} || 5432, |
84 | 84 |
username => $::myconfig{dbuser}, |
85 | 85 |
password => $::myconfig{dbpasswd}, |
Auch abrufbar als: Unified diff
Rose-Datenbankverbindung: Wenn 'dbhost' leer ist, Fallback auf 'localhost' nutzen
So ist es auch im Rest des Programms implementiert.