FreeBSD 9 support

This commit is contained in:
Jamie Cameron
2013-03-19 17:11:02 -07:00
parent f1bce6cc3b
commit 0add4cf4f9
2 changed files with 30 additions and 0 deletions

View File

@@ -25,6 +25,11 @@ if (!-x $config{'psql'} || -d $config{'psql'}) {
# Check for alternate config file, and use
if (!$hba_conf_file && -r $config{'alt_hba_conf'} && &is_postgresql_local()) {
($hba_conf_file) = split(/\t+/, $config{'hba_conf'});
my $hba_conf_dir = $hba_conf_file;
$hba_conf_dir =~ s/\/([^\/]+)$//;
if (!-d $hba_conf_dir) {
&make_dir($hba_conf_dir, 0777);
}
&copy_source_dest($config{'alt_hba_conf'}, $hba_conf_file);
}