From de566bf7dd19e7890aa33a5607757a4d5d3a1ca0 Mon Sep 17 00:00:00 2001 From: bybai Date: Thu, 24 Mar 2016 23:24:41 -0400 Subject: [PATCH] fix issue 496 lsf_startup in redhat7.2 --- xCAT/postscripts/lsf_startup | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/xCAT/postscripts/lsf_startup b/xCAT/postscripts/lsf_startup index f8c4e5ca6..37f4c4909 100644 --- a/xCAT/postscripts/lsf_startup +++ b/xCAT/postscripts/lsf_startup @@ -59,7 +59,14 @@ for lsfnode in $ALL_LSF_NODES do if [[ x${lsfnode} == x$NODE ]] then - echo ". $LSF_TOP/conf/profile.lsf" >> /root/.profile + + if grep -q -i "release 7.2" /etc/redhat-release ; then + + echo ". $LSF_TOP/conf/profile.lsf" >> /root/.profile + else + #special case for redhat7.2 + echo ". $LSF_TOP/conf/profile.lsf" >> ~/.bash_profile + fi fi done