From 5f6ccbff86f67c29df20f03501224e0abd3a88ae Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 12 Feb 2013 18:33:29 +0000 Subject: [PATCH] change db2sqlsetup to look for files in /opt/xcat/share/xcat/scripts git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15146 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/bin/db2sqlsetup | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/xCAT-client/bin/db2sqlsetup b/xCAT-client/bin/db2sqlsetup index e44b479f0..fe765ffcd 100755 --- a/xCAT-client/bin/db2sqlsetup +++ b/xCAT-client/bin/db2sqlsetup @@ -1228,7 +1228,7 @@ sub updateDBM my $rc = 0; # su to xcatdb to update the DBM - $cmd = "db2 -tvf /opt/xcat/share/xcat/tools/updateDBM.sql "; + $cmd = "db2 -tvf /opt/xcat/share/xcat/scripts/updateDBM.sql "; $rc = &rundb2cmd($cmd); if ($rc != 0) { @@ -1263,9 +1263,9 @@ sub createxcatdb #('/var/lib/db2 /ts16') BUFFERPOOL BP16K; #Create tablespace xcattbs32k pagesize 32k managed by system using # ('/var/lib/db2 /ts32') BUFFERPOOL BP32K; - my $createdb = "/opt/xcat/share/xcat/tools/createdb.sql"; - my $createdborg = "/opt/xcat/share/xcat/tools/createdb.sql.org"; - my $createdbtmp = "/opt/xcat/share/xcat/tools/createdb.sql.tmp"; + my $createdb = "/opt/xcat/share/xcat/scripts/createdb.sql"; + my $createdborg = "/opt/xcat/share/xcat/scripts/createdb.sql.org"; + my $createdbtmp = "/opt/xcat/share/xcat/scripts/createdb.sql.tmp"; my $cmd; my $message; if (!(-e $createdborg)) { @@ -1317,7 +1317,7 @@ sub createxcatdb # su to xcatdb to create the database - $cmd = "db2 -tvf /opt/xcat/share/xcat/tools/createdb.sql "; + $cmd = "db2 -tvf /opt/xcat/share/xcat/scripts/createdb.sql "; $rc = &rundb2cmd($cmd); if ($rc != 0) { @@ -1419,7 +1419,7 @@ sub db2reboot my $message = "DB2 /etc/init reboot file already setup"; xCAT::MsgUtils->message("I", "$message"); } else { - $cmd = "cp /opt/xcat/share/xcat/tools/xcatfmcd.conf /etc/init/xcatfmcd.conf"; + $cmd = "cp /opt/xcat/share/xcat/scripts/xcatfmcd.conf /etc/init/xcatfmcd.conf"; xCAT::Utils->runcmd($cmd, 0); if ($::RUNCMD_RC != 0) {