remove version 2

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16383 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2013-05-21 18:15:42 +00:00
parent 32cf475cf8
commit d86b8b8413

View File

@ -23,7 +23,6 @@ do
GOTIT=0
for i in $MASTER_IPS
do
#wget -l inf -N -r --waitretry=10 --random-wait --retry-connrefused -t 0 -T 60 ftp://$i/postscripts
wget -l inf -N -r --waitretry=10 --random-wait --retry-connrefused -e robots=off -nH --cut-dirs=2 --reject "index.html*" --no-parent -t 0 -T 60 http://$i$INSTALLDIR/postscripts/ -P /xcatpost
if [ "$?" = "0" ]
then
@ -32,7 +31,6 @@ do
export NODE=#TABLE:nodelist:THISNODE:node#
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
#cp -f /xcatpost/mypostscript.$NODE /xcatpost/mypostscript
if [ ! -x /usr/bin/openssl ]; then #Stop if no openssl to help the next bit
exit 1
@ -44,18 +42,12 @@ do
mv $i/postscripts /xcatpost
rm -rf $i
# If mypostscript doesn't exit, we will get it through getpostscript.awk
# If mypostscript doesn't exist, we will get it through getpostscript.awk
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 version2 > /dev/null
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.tmp /xcatpost/mypostscript
fi
MYCONT=`grep MASTER /xcatpost/mypostscript`
MAX_RETRIES=10
@ -69,10 +61,7 @@ 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 version2 > /dev/null
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
/xcatpost/getpostscript.awk |sed -e 's/<[^>]*>//g'|egrep -v '^ *$'|sed -e 's/^ *//' > /xcatpost/mypostscript
MYCONT=`grep MASTER /xcatpost/mypostscript`
done