diff --git a/xCAT/postscripts/xcatinstallpost b/xCAT/postscripts/xcatinstallpost index 0a6d0ce90..355c9b414 100755 --- a/xCAT/postscripts/xcatinstallpost +++ b/xCAT/postscripts/xcatinstallpost @@ -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`