fxied bug 3291 in AIX env. There is not precreatemypostscripts=1 in site table for AIX. So get the mypostscript.nodename.tmp directly.

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

View File

@ -549,8 +549,8 @@ sub getmypost {
if( !defined($TFTPDIR) ) {
$TFTPDIR="/tftpboot";
}
`mkdir -p /xcatpost; cd /xcatpost; tftp -o $scriptname $servnode $TFTPDIR/mypostscripts/mypostscript.$::shorthost`;
`mkdir -p /xcatpost; cd /xcatpost; tftp -o $scriptname $servnode $TFTPDIR/mypostscripts/mypostscript.$::shorthost.tmp`;
# `wget -N --waitretry=10 --random-wait -T 60 http://$servnode$TFTPDIR/mypostscripts/mypostscript.$::shorthost -P /xcatpost 2>> /tmp/wget.log; mv /xcatpost/mypostscript.$::shorthost $scriptname`;
if(!( -f $scriptname)) {