mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-31 01:56:39 +00:00
fix issue
This commit is contained in:
parent
6e19ac5dc6
commit
a954d6d2f2
@ -89,7 +89,10 @@ else
|
||||
sed -i "/SERVICEGROUP=.*/d" $XCATINFOFILE
|
||||
fi
|
||||
|
||||
CNS=`grep NODESTATUS= /xcatpost/mypostscript.post |awk -F = '{print $2}' | tr -d \'\" | tr A-Z a-z`
|
||||
[ -f /xcatpost/mypostscript ] && NODESTATUS=`grep 'NODESTATUS=' /xcatpost/mypostscript |awk -F = '{print $2}'|tr -d \'\" | tr A-Z a-z `
|
||||
[ -z "$NODESTATUS" ] && NODESTATUS="1"
|
||||
|
||||
CNS=$NODESTATUS
|
||||
if [ -z "$CNS" ] || [[ "$CNS" =~ ^(1|yes|y)$ ]]; then
|
||||
#update the node status during the postbootscript running
|
||||
#TMP=`sed "/postbootscripts-start-here/ i\updateflag.awk \\$MASTER 3002 \\"installstatus configuring\\"" /xcatpost/mypostscript.post`
|
||||
|
@ -23,6 +23,7 @@ fi
|
||||
|
||||
[ -f /opt/xcat/xcatinfo ] && XCATSERVER=`grep 'XCATSERVER' /opt/xcat/xcatinfo |cut -d= -f2 | tr -d \'\" `
|
||||
[ -f /xcatpost/mypostscript ] && NODESTATUS=`grep 'NODESTATUS=' /xcatpost/mypostscript |awk -F = '{print $2}'|tr -d \'\" | tr A-Z a-z `
|
||||
[ -z "$NODESTATUS" ] && NODESTATUS="1"
|
||||
[ -f /xcatpost/mypostscript ] && RUNBOOTSCRIPTS=`grep 'RUNBOOTSCRIPTS=' /xcatpost/mypostscript |awk -F = '{print $2}' | tr -d \'\" | tr A-Z a-z `
|
||||
|
||||
case $1 in
|
||||
|
Loading…
x
Reference in New Issue
Block a user