bug fix in xcatinstallpost

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5507 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
linggao 2010-03-17 14:37:20 +00:00
parent 3ccb90dd7f
commit 551426e1d4

View File

@ -29,12 +29,13 @@ PATH=/xcatpost:$PATH
export PATH
chmod +x /xcatpost/*;
#if [ -x /usr/bin/openssl ]; then
# XCATSERVER="$SIP:3001"
# export XCATSERVER
# USEOPENSSLFORXCAT=1 #Though this is the only method going forward, flag to allow backward compatibility with 2.2 generated netboot images
# export USEOPENSSLFORXCAT
#fi
if [ -x /usr/bin/openssl ]; then
SIP=`grep "^MASTER=" /tmp/mypostscript.post |cut -d= -f2`
XCATSERVER="$SIP:3001"
export XCATSERVER
USEOPENSSLFORXCAT=1 #Though this is the only method going forward, flag to allow backward compatibility with 2.2 generated netboot images
export USEOPENSSLFORXCAT
fi
DHCP_TMP=`sed 's/\(DHCPINTERFACES=\)\(.*\)$/\1"\2"/' /tmp/mypostscript.post`