basedb=template1
pass=
hba_conf=/usr/local/pgsql/data/pg_hba.conf
+alt_hba_conf=/usr/local/share/postgresql/pg_hba.conf.sample
pid_file=/usr/local/pgsql/data/postmaster.pid
stop_cmd=/usr/local/etc/rc.d/010.pgsql.sh stop
start_cmd=/usr/local/etc/rc.d/010.pgsql.sh start
exit;
}
+# Check for alternate config file, and use
+if (!$hba_conf_file && -r $config{'alt_hba_conf'}) {
+ ($hba_conf_file) = split(/\t+/, $config{'hba_conf'});
+ ©_source_dest($config{'alt_hba_conf'}, $hba_conf_file);
+ }
+
# Check for the config file
-if (!-r $hba_conf_file) {
+if (!$hba_conf_file) {
&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'});