mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 09:13:08 +00:00
Merge pull request #849 from bybai/lsf
fix issue 496 lsf_startup use incorrect shell profile file on RHEL 7.2
This commit is contained in:
commit
cb4fdc0955
@ -59,7 +59,19 @@ for lsfnode in $ALL_LSF_NODES
|
||||
do
|
||||
if [[ x${lsfnode} == x$NODE ]]
|
||||
then
|
||||
echo ". $LSF_TOP/conf/profile.lsf" >> /root/.profile
|
||||
if [[ -f /root/.bash_profile ]]
|
||||
then
|
||||
if ! grep -q -i "#Added by lsf_startup" /root/.bash_profile ; then
|
||||
echo "#Added by lsf_startup." >> /root/.bash_profile
|
||||
echo ". $LSF_TOP/conf/profile.lsf" >> /root/.bash_profile
|
||||
fi
|
||||
else
|
||||
if ! grep -q -i "#Added by lsf_startup" /root/.profile ; then
|
||||
echo "#Added by lsf_startup." >> /root/.profile
|
||||
echo ". $LSF_TOP/conf/profile.lsf" >> /root/.profile
|
||||
fi
|
||||
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user