From 7d3ba4d3f8ad34880aae418b41659ec60e7dfbdf Mon Sep 17 00:00:00 2001 From: bybai Date: Mon, 28 Mar 2016 02:37:53 -0400 Subject: [PATCH] polish lsf_startup --- xCAT/postscripts/lsf_startup | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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