2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +00:00

polish lsf_startup

This commit is contained in:
bybai 2016-03-28 03:07:42 -04:00
parent 7d3ba4d3f8
commit f852193495

View File

@ -59,13 +59,18 @@ for lsfnode in $ALL_LSF_NODES
do
if [[ x${lsfnode} == x$NODE ]]
then
if [[ -f /root/.bash_profile ]]
then
echo ". $LSF_TOP/conf/profile.lsf" >> /root/.bash_profile
then
if ! grep -q -i "#Added by lsf_startup" /root/.bash_profile ; then
echo "#Added by lsf_startup."
echo ". $LSF_TOP/conf/profile.lsf" >> /root/.bash_profile
fi
else
echo ". $LSF_TOP/conf/profile.lsf" >> /root/.profile
if ! grep -q -i "#Added by lsf_startup" /root/.profile ; then
echo "#Added by lsf_startup."
echo ". $LSF_TOP/conf/profile.lsf" >> /root/.profile
fi
fi
fi
done