add feature: update delta change from golden client to target node

This commit is contained in:
huweihua 2014-06-19 03:50:46 -04:00
parent d378feca92
commit 481b70c330

View File

@ -1,4 +1,5 @@
#!/bin/bash
#Used only by sysclone
if [ ! -f "/opt/xcat/xcatdsklspost" ];then
echo "sysclone require /opt/xcat/xcatdsklspost, but it can not be found. return error!"
@ -27,6 +28,11 @@ fi
XCATSERVER="$XCATSERVER:3001"
export XCATSERVER
if [ ! -d "/etc/xcat/" ];then
mkdir -p /etc/xcat
fi
echo "sysclone" > /etc/xcat/xcatinstallinfo
cd /xcatpost/
#save the postboot scripts to /xcatpost/mypostscript.post
TMP=`sed "/postscripts-start-here/,/postscripts-end-here/ d" /xcatpost/mypostscript`
@ -68,4 +74,6 @@ echo "$TMP" > /tmp/xcatenv
. /tmp/xcatenv
/xcatpost/addsiteyum
/xcatpost/updateflag.awk $MASTER 3002
if [ -z "$NODESTATUS" ] || [ "$NODESTATUS" != "0" -a "$NODESTATUS" != "N" -a "$NODESTATUS" != "n" ]; then
/xcatpost/updateflag.awk $MASTER 3002
fi