From c265f26a1f8891e1fef25f096bc4f225d0e307a8 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Fri, 27 Nov 2009 12:32:01 -0800 Subject: [PATCH] Don't complain about hba.conf file is PostgreSQL is remote --- postgresql/index.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/postgresql/index.cgi b/postgresql/index.cgi index 8e23fea87..e28de96a1 100755 --- a/postgresql/index.cgi +++ b/postgresql/index.cgi @@ -23,13 +23,13 @@ if (!-x $config{'psql'} || -d $config{'psql'}) { } # Check for alternate config file, and use -if (!$hba_conf_file && -r $config{'alt_hba_conf'}) { +if (!$hba_conf_file && -r $config{'alt_hba_conf'} && &is_postgresql_local()) { ($hba_conf_file) = split(/\t+/, $config{'hba_conf'}); ©_source_dest($config{'alt_hba_conf'}, $hba_conf_file); } # Check for the config file -if (!$hba_conf_file) { +if (!$hba_conf_file && &is_postgresql_local()) { &ui_print_header(undef, $text{'index_title'}, "", "intro", 1, 1, 0, &help_search_link("postgresql", "man", "doc", "google")); ($hba_conf_file) = split(/\t+/, $config{'hba_conf'});