for linux, make getpostscript.awk use the template method, instead of the original method
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14395 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
52d7012432
commit
5238c71638
@ -48,7 +48,15 @@ do
|
||||
if [ ! -x /xcatpost/mypostscript ]; then
|
||||
|
||||
chmod +x /xcatpost/*
|
||||
/xcatpost/getpostscript.awk |sed -e 's/<[^>]*>//g'|egrep -v '^ *$'|sed -e 's/^ *//' > /xcatpost/mypostscript
|
||||
#/xcatpost/getpostscript.awk |sed -e 's/<[^>]*>//g'|egrep -v '^ *$'|sed -e 's/^ *//' > /xcatpost/mypostscript
|
||||
|
||||
/xcatpost/getpostscript.awk > /dev/null
|
||||
wget -N --waitretry=10 --random-wait -T 60 http://$i$TFTPDIR/mypostscripts/mypostscript.$NODE -P /xcatpost 2>> /tmp/wget.log
|
||||
rc=$?
|
||||
if [ "$rc" = "0" ]; then
|
||||
mv /xcatpost/mypostscript.$NODE /xcatpost/mypostscript
|
||||
fi
|
||||
|
||||
MYCONT=`grep MASTER /xcatpost/mypostscript`
|
||||
MAX_RETRIES=10
|
||||
RETRY=0
|
||||
@ -61,7 +69,11 @@ do
|
||||
|
||||
let SLI=$RANDOM%10+10
|
||||
sleep $SLI
|
||||
/xcatpost/getpostscript.awk |sed -e 's/<[^>]*>//g'|egrep -v '^ *$'|sed -e 's/^ *//' > /xcatpost/mypostscript
|
||||
#/xcatpost/getpostscript.awk |sed -e 's/<[^>]*>//g'|egrep -v '^ *$'|sed -e 's/^ *//' > /xcatpost/mypostscript
|
||||
/xcatpost/getpostscript.awk > /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
|
||||
|
||||
MYCONT=`grep MASTER /xcatpost/mypostscript`
|
||||
done
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user