diff --git a/xCAT/postscripts/otherpkgs b/xCAT/postscripts/otherpkgs index f65d60918..a83be9ea0 100755 --- a/xCAT/postscripts/otherpkgs +++ b/xCAT/postscripts/otherpkgs @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/sh # IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html #------------------------------------------------------------------------------- @@ -581,6 +581,7 @@ while [ $op_index -le $OTHERPKGS_INDEX ]; do wget -l inf -N -r --waitretry=10 --random-wait --retry-connrefused -t 0 -T 60 --reject "index.html*" --no-parent http://$OTHERPKGDIR/ 2> /tmp/wget.log + cd /tmp/postage/$NFSSERVER$INSTALLDIR mv $dir_no_ftproot/* /xcatpost/$dir_no_ftproot; rm -rf $dir_no_ftproot cd /xcatpost/$dir_no_ftproot @@ -598,7 +599,7 @@ while [ $op_index -le $OTHERPKGS_INDEX ]; do if [ $mounted -eq 0 ]; then cd /xcatpost - dir_no_ftproot=${OTHERPKGDIR#$INSTALLDIR/} + dir_no_ftproot=${OTHERPKGDIR#*$INSTALLDIR/} dir_no_ftproot=${dir_no_ftproot%%/*} rm -f -R $dir_no_ftproot fi