mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-24 15:05:36 +00:00
polish lsf_startup
This commit is contained in:
@ -60,12 +60,12 @@ do
|
||||
if [[ x${lsfnode} == x$NODE ]]
|
||||
then
|
||||
|
||||
if grep -q -i "release 7.2" /etc/redhat-release ; then
|
||||
if [[ -f /root/.bash_profile ]]
|
||||
then
|
||||
|
||||
echo ". $LSF_TOP/conf/profile.lsf" >> /root/.profile
|
||||
echo ". $LSF_TOP/conf/profile.lsf" >> /root/.bash_profile
|
||||
else
|
||||
#special case for redhat7.2
|
||||
echo ". $LSF_TOP/conf/profile.lsf" >> ~/.bash_profile
|
||||
echo ". $LSF_TOP/conf/profile.lsf" >> /root/.profile
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
Reference in New Issue
Block a user