diff --git a/xCAT-server/share/xcat/install/scripts/post.xcat b/xCAT-server/share/xcat/install/scripts/post.xcat index e5d2d962f..dd16fa716 100644 --- a/xCAT-server/share/xcat/install/scripts/post.xcat +++ b/xCAT-server/share/xcat/install/scripts/post.xcat @@ -51,10 +51,10 @@ do #/xcatpost/getpostscript.awk |sed -e 's/<[^>]*>//g'|egrep -v '^ *$'|sed -e 's/^ *//' > /xcatpost/mypostscript /xcatpost/getpostscript.awk version2 > /dev/null - wget -N --waitretry=10 --random-wait -T 60 http://$i$TFTPDIR/mypostscripts/mypostscript.$NODE -P /xcatpost 2>> /tmp/wget.log + wget -N --waitretry=10 --random-wait -T 60 http://$i$TFTPDIR/mypostscripts/mypostscript.$NODE.tmp -P /xcatpost 2>> /tmp/wget.log rc=$? if [ "$rc" = "0" ]; then - mv /xcatpost/mypostscript.$NODE /xcatpost/mypostscript + mv /xcatpost/mypostscript.$NODE.tmp /xcatpost/mypostscript fi MYCONT=`grep MASTER /xcatpost/mypostscript` @@ -71,8 +71,8 @@ do sleep $SLI #/xcatpost/getpostscript.awk |sed -e 's/<[^>]*>//g'|egrep -v '^ *$'|sed -e 's/^ *//' > /xcatpost/mypostscript /xcatpost/getpostscript.awk version2 > /dev/null - wget -N --waitretry=10 --random-wait -T 60 http://$i$TFTPDIR/mypostscripts/mypostscript.$NODE -P /xcatpost 2>> /tmp/wget.log - mv /xcatpost/mypostscript.$NODE /xcatpost/mypostscript + wget -N --waitretry=10 --random-wait -T 60 http://$i$TFTPDIR/mypostscripts/mypostscript.$NODE.tmp -P /xcatpost 2>> /tmp/wget.log + mv /xcatpost/mypostscript.$NODE.tmp /xcatpost/mypostscript MYCONT=`grep MASTER /xcatpost/mypostscript` done