add env parameters in runxcatpost

This commit is contained in:
xq2005 2013-10-17 02:21:02 -07:00
parent 52344f9997
commit 87db317493

View File

@ -18,6 +18,15 @@ echo "cd /" >> /tmp/xcatsysclonepost
chmod +x /tmp/xcatsysclonepost
/tmp/xcatsysclonepost
if [ -x /usr/bin/openssl ]; then
USEOPENSSLFORXCAT=1 #Though this is the only method going forward, flag to allow backward compatibility with 2.2 generated netboot images
export USEOPENSSLFORXCAT
fi
. /opt/xcat/xcatinfo
XCATSERVER="$XCATSERVER:3001"
export XCATSERVER
cd /xcatpost/
#save the postboot scripts to /xcatpost/mypostscript.post
TMP=`sed "/postscripts-start-here/,/postscripts-end-here/ d" /xcatpost/mypostscript`
@ -50,6 +59,7 @@ fi
TMP=`sed "/postbootscripts-start-here/,/postbootscripts-end-here/ d" /xcatpost/mypostscript`
echo "$TMP" > /xcatpost/mypostscript
chmod +x /xcatpost/mypostscript
/xcatpost/mypostscript