update of sqllib profile can be done by root, no need to su to xcatdb
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7410 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
86fbb95970
commit
9868cdbd47
@ -739,16 +739,15 @@ sub setupinstance
|
||||
xCAT::MsgUtils->message("E", " $cmd failed.");
|
||||
}
|
||||
|
||||
# su to xcatdb and run more setup
|
||||
$cmd = "echo \"EXTSHM=ON\" >> /var/lib/db2/sqllib/db2profile ";
|
||||
$rc = &rundb2cmd($cmd);
|
||||
if ($rc != 0)
|
||||
xCAT::Utils->runcmd($cmd,0);
|
||||
if ($::RUNCMD_RC != 0)
|
||||
{
|
||||
xCAT::MsgUtils->message("I", " $cmd warning.");
|
||||
}
|
||||
$cmd = "echo \"export EXTSHM\" >>/var/lib/db2/sqllib/db2profile ";
|
||||
$rc = &rundb2cmd($cmd);
|
||||
if ($rc != 0)
|
||||
xCAT::Utils->runcmd($cmd,0);
|
||||
if ($::RUNCMD_RC != 0)
|
||||
{
|
||||
xCAT::MsgUtils->message("I", " $cmd warning.");
|
||||
}
|
||||
@ -763,16 +762,15 @@ sub setupinstance
|
||||
xCAT::MsgUtils->message("E", " $cmd failed.");
|
||||
exit(1);
|
||||
}
|
||||
# su to xcatdb and run more setup
|
||||
$cmd = "echo \"EXTSHM=ON\" >> /var/lib/db2/sqllib/db2profile ";
|
||||
$rc = &rundb2cmd($cmd);
|
||||
if ($rc != 0)
|
||||
xCAT::Utils->runcmd($cmd, 0);
|
||||
if ($::RUNCMD_RC != 0)
|
||||
{
|
||||
xCAT::MsgUtils->message("I", " $cmd warning.");
|
||||
}
|
||||
$cmd = "echo \"export EXTSHM\" >>/var/lib/db2/sqllib/db2profile ";
|
||||
$rc = &rundb2cmd($cmd);
|
||||
if ($rc != 0)
|
||||
xCAT::Utils->runcmd($cmd, 0);
|
||||
if ($::RUNCMD_RC != 0)
|
||||
{
|
||||
xCAT::MsgUtils->message("I", " $cmd warning.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user