From 0d51d18b12745c89b6dff1a04612b5fe97d4c0ba Mon Sep 17 00:00:00 2001 From: Thomas Berezansky Date: Fri, 9 Sep 2011 10:25:10 -0400 Subject: [PATCH] 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 --- Open-ILS/src/support-scripts/eg_db_config.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.43.2