mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-31 01:56:39 +00:00
Remove quoted XCATSERVER from xcatinfo
This commit is contained in:
parent
51ba70b892
commit
97824433b4
@ -429,8 +429,8 @@ if [ "$MODE" = "4" ]; then # for statelite mode
|
||||
done
|
||||
|
||||
if [ -f /opt/xcat/xcatinfo ]; then
|
||||
SIP=`grep 'XCATSERVER' /opt/xcat/xcatinfo |cut -d= -f2`
|
||||
HTTPPORT=`grep 'HTTPPORT' /opt/xcat/xcatinfo |cut -d= -f2`
|
||||
SIP=`grep 'XCATSERVER' /opt/xcat/xcatinfo |cut -d= -f2 | sed "s/'//g"`
|
||||
HTTPPORT=`grep 'HTTPPORT' /opt/xcat/xcatinfo |cut -d= -f2 | sed "s/'//g"`
|
||||
if [ -n "$SIP" ]; then
|
||||
download_postscripts $SIP:${HTTPPORT}
|
||||
if [ $? -eq 0 ]; then
|
||||
@ -498,8 +498,8 @@ else # for common mode MODE=1,2,3,5 (updatenode,moncfg,node deployment)
|
||||
|
||||
# if not updatenode, then look in xcatinfo for the xcatmaster
|
||||
if [ -f /opt/xcat/xcatinfo ]; then
|
||||
SIP=`grep 'XCATSERVER' /opt/xcat/xcatinfo |cut -d= -f2`
|
||||
HTTPPORT=`grep 'HTTPPORT' /opt/xcat/xcatinfo |cut -d= -f2`
|
||||
SIP=`grep 'XCATSERVER' /opt/xcat/xcatinfo |cut -d= -f2 | sed "s/'//g"`
|
||||
HTTPPORT=`grep 'HTTPPORT' /opt/xcat/xcatinfo |cut -d= -f2 | sed "s/'//g"`
|
||||
[ -z "$HTTPPORT" ] && HTTPPORT="80"
|
||||
if [ -n "$SIP" ]; then
|
||||
download_postscripts ${SIP}:${HTTPPORT}
|
||||
|
Loading…
x
Reference in New Issue
Block a user