fixed bug 3291. in Linux, if the precreatemypostscripts is not set or set to 0 in site table, it will get the mypostscript.nodename fistly. If not get it, use getpostscript.awk version2 to generate the mypostscript file named mypostscript.nodename.tmp, then get it

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14911 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua 2013-01-17 09:31:00 +00:00
parent 9b7b07a6ee
commit a60b0c597d

View File

@ -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