Set a default value for ha_hosts_file in pandora_db.
This commit is contained in:
parent
373701e28a
commit
5b3c5850b0
|
@ -630,7 +630,8 @@ sub pandora_load_config_pdb ($) {
|
||||||
$conf->{'errorlogfile'} = "/var/log/pandora_server.error" unless defined ($conf->{'errorlogfile'});
|
$conf->{'errorlogfile'} = "/var/log/pandora_server.error" unless defined ($conf->{'errorlogfile'});
|
||||||
|
|
||||||
# The DB host was overridden by pandora_ha.
|
# The DB host was overridden by pandora_ha.
|
||||||
if (defined($conf->{'ha_hosts_file'}) && -f $conf->{'ha_hosts_file'}) {
|
$conf->{'ha_hosts_file'} = '/var/spool/pandora/data_in/conf/pandora_ha_hosts.conf' unless defined($conf->{'ha_hosts_file'});
|
||||||
|
if (-f $conf->{'ha_hosts_file'}) {
|
||||||
eval {
|
eval {
|
||||||
open(my $fh, '<', $conf->{'ha_hosts_file'}) or return;
|
open(my $fh, '<', $conf->{'ha_hosts_file'}) or return;
|
||||||
my $dbhost = <$fh>;
|
my $dbhost = <$fh>;
|
||||||
|
|
Loading…
Reference in New Issue