From 49a8e3d1ea96a4456e661a158410bd703cd5c840 Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 20 Oct 2010 13:30:12 +0000 Subject: [PATCH] fix so won't have double entries in cfgloc on the service node with db2install runs git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7890 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/bin/db2sqlsetup | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xCAT-client/bin/db2sqlsetup b/xCAT-client/bin/db2sqlsetup index d57630a2d..16d6d84a1 100755 --- a/xCAT-client/bin/db2sqlsetup +++ b/xCAT-client/bin/db2sqlsetup @@ -70,7 +70,6 @@ $::command = "$0 $args"; Getopt::Long::Configure("bundling"); $Getopt::Long::ignorecase = 0; $::databaseloc = "/var/lib/db2"; # database loccation - # parse the options if ( !GetOptions( @@ -1365,7 +1364,7 @@ sub createcfgloc my $message; # if they had an old cfgloc , save it - if ((-e ($cfgloc)) && (!(-e ($cfglocbackup)))) + if (-e ($cfgloc) { $cmd = "mv $cfgloc $cfglocbackup"; xCAT::Utils->runcmd($cmd, 0);