mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-08 12:30:14 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user