fix setting up of .profile

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6946 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2010-08-02 17:09:52 +00:00
parent ed444ddb39
commit 76a1727a6a

View File

@ -541,6 +541,21 @@ sub mkdb2user
xCAT::MsgUtils->message("E", " $cmd failed.");
exit(1);
}
# touch .profile to makesure it stays owned by xcatd
$cmd = "touch /var/lib/db2/.profile";
xCAT::Utils->runcmd($cmd, 0);
if ($::RUNCMD_RC != 0)
{
xCAT::MsgUtils->message("E", " $cmd failed.");
exit(1);
}
$cmd = "chmod 777 /var/lib/db2/.profile";
xCAT::Utils->runcmd($cmd, 0);
if ($::RUNCMD_RC != 0)
{
xCAT::MsgUtils->message("E", " $cmd failed.");
exit(1);
}
}