From d67c1ad4c87805488e9adcd87e0085b6d9824c27 Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 11 Jul 2012 12:06:17 +0000 Subject: [PATCH] fix odbc setup of odbcinst.ini file database name wrong git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13275 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/bin/pgsqlsetup | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xCAT-client/bin/pgsqlsetup b/xCAT-client/bin/pgsqlsetup index 4d6707bbc..ada3450f6 100755 --- a/xCAT-client/bin/pgsqlsetup +++ b/xCAT-client/bin/pgsqlsetup @@ -1018,9 +1018,10 @@ sub setupODBC exit(1); } - # get host and password from cfgloc - (my $connstring, my $adminid, my $passwd) = split(/\|/, $output[0]); - (my $database, my $id, my $server) = split(/=/, $connstring); + # get host and password database from cfgloc + my( $connstring, $adminid, $passwd) = split(/\|/, $output[0]); + my ($hdr, $id, $server) = split(/=/, $connstring); + my ($database,$footer) = split(/;/, $id); # the odbcinst.ini file should have been created during install of the # unixODBC and postgresql-ODBC rpms my $odbcfile = "/etc/odbc.ini";