diff --git a/xCAT/postscripts/lsf_startup b/xCAT/postscripts/lsf_startup index 37f4c4909..93c539b3d 100644 --- a/xCAT/postscripts/lsf_startup +++ b/xCAT/postscripts/lsf_startup @@ -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