From: Thomas Berezansky Date: Fri, 9 Sep 2011 14:25:10 +0000 (-0400) Subject: When checking postgresql version use postgres db X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=715a367a2f9db3c9dc8ffbe612c0b36511d5b23d;p=evergreen%2Ftadl.git When checking postgresql version use postgres db Otherwise we may get an error instead of a version number. Signed-off-by: Thomas Berezansky Signed-off-by: Dan Scott --- diff --git a/Open-ILS/src/support-scripts/eg_db_config.pl b/Open-ILS/src/support-scripts/eg_db_config.pl index ef49e9829d..93c53fa0b4 100755 --- a/Open-ILS/src/support-scripts/eg_db_config.pl +++ b/Open-ILS/src/support-scripts/eg_db_config.pl @@ -136,7 +136,7 @@ sub create_database { $ENV{'PGPASSWORD'} = $settings->{pw}; $ENV{'PGPORT'} = $settings->{port}; $ENV{'PGHOST'} = $settings->{host}; - my @temp = `psql -qtc 'show server_version;' | xargs | cut -c1,3`; + my @temp = `psql -d postgres -qtc 'show server_version;' | xargs | cut -c1,3`; chomp $temp[0]; my $pgversion = $temp[0]; my $cmd;