diff --git a/postgresql/config-freebsd-9-* b/postgresql/config-freebsd-9-* new file mode 100644 index 000000000..13920db8b --- /dev/null +++ b/postgresql/config-freebsd-9-* @@ -0,0 +1,25 @@ +basedb=template1 +pass= +hba_conf=/usr/local/pgsql/data/pg_hba.conf +pid_file=/usr/local/pgsql/data/postmaster.pid +stop_cmd=/usr/local/etc/rc.d/postgresql forcestop +start_cmd=/usr/local/etc/rc.d/postgresql forcestart +setup_cmd=/usr/local/etc/rc.d/postgresql forceinitdb +perpage=25 +psql=/usr/local/bin/psql +login=pgsql +plib=/usr/local/lib +nodbi=0 +dump_cmd=/usr/local/bin/pg_dump +rstr_cmd=/usr/local/bin/pg_restore +sameunix=0 +access=*: * +blob_mode=0 +add_mode=1 +date_subs=0 +style=0 +max_dbs=50 +simple_sched=0 +access_own=0 +max_text=1000 +webmin_subs=0 diff --git a/postgresql/index.cgi b/postgresql/index.cgi index b94ea25e4..65006577a 100755 --- a/postgresql/index.cgi +++ b/postgresql/index.cgi @@ -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); + } ©_source_dest($config{'alt_hba_conf'}, $hba_conf_file); }