From c874b9e8587e25a04b7e2add0178036f2a2376f0 Mon Sep 17 00:00:00 2001 From: mxi1 Date: Thu, 22 Apr 2010 07:16:11 +0000 Subject: [PATCH] for ftp://$SIP/postscripts, "--cut-dirs" should be 1, not 2. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5847 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/xcatdsklspost | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/xCAT/postscripts/xcatdsklspost b/xCAT/postscripts/xcatdsklspost index 9c15ccd12..1eae13ba6 100755 --- a/xCAT/postscripts/xcatdsklspost +++ b/xCAT/postscripts/xcatdsklspost @@ -190,12 +190,10 @@ if grep 'rw /rw tmpfs ' /proc/mounts >& /dev/null; then fi rm -rf /xcatpost/*; -wget -l inf -nH -N -r --waitretry=10 --random-wait --retry-connrefused -t 0 -T 60 ftp://$SIP/postscripts -P /xcatpost 2> /tmp/wget.log -cd /xcatpost; -mv postscripts/* ./; -rm -rf postscripts; +wget -l inf -nH -N -r --waitretry=10 --random-wait --retry-connrefused -t 0 -T 60 ftp://$SIP/postscripts -P /xcatpost --cut-dirs=1 2> /tmp/wget.log chmod +x /xcatpost/*; +cd /xcatpost; PATH=/xcatpost:$PATH export PATH