diff options
-rwxr-xr-x | LedgerSMB/User.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/LedgerSMB/User.pm b/LedgerSMB/User.pm index 6e4a872e..ea41444c 100755 --- a/LedgerSMB/User.pm +++ b/LedgerSMB/User.pm @@ -433,6 +433,8 @@ sub process_query { $ENV{PGPASSWORD} = $form->{dbpasswd}; $ENV{PGUSER} = $form->{dbuser}; $ENV{PGDATABASE} = $form->{db}; + $ENV{PGHOST} = $form->{dbhost}; + $ENV{PGPORT} = $form->{pgport}; $results = `psql -f $filename 2>&1`; if ($?){ |