From 38630500062e402ecc648ffbeb3da6e0c93adb7c Mon Sep 17 00:00:00 2001 From: mellor Date: Tue, 25 May 2010 18:20:59 +0000 Subject: [PATCH] fix wget hangs when server cannot be reached git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6225 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-IBMhpc/share/xcat/IBMhpc/essl/essl_install | 2 +- xCAT-IBMhpc/share/xcat/IBMhpc/gpfs/gpfs_updates | 2 +- xCAT-IBMhpc/share/xcat/IBMhpc/loadl/loadl_install | 2 +- xCAT-IBMhpc/share/xcat/IBMhpc/pe/pe_install | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/xCAT-IBMhpc/share/xcat/IBMhpc/essl/essl_install b/xCAT-IBMhpc/share/xcat/IBMhpc/essl/essl_install index b964cf53f..62d99c7b4 100755 --- a/xCAT-IBMhpc/share/xcat/IBMhpc/essl/essl_install +++ b/xCAT-IBMhpc/share/xcat/IBMhpc/essl/essl_install @@ -27,7 +27,7 @@ if [ $OS != "AIX" ]; then rm -f -R /tmp/essl/* cd /tmp/essl download_dir=`echo $ESSL_DIR | cut -d '/' -f3-` - wget -l inf -N -r --waitretry=10 --random-wait --retry-connrefused -t 0 -T 60 -nH --cut-dirs=5 ftp://$SITEMASTER/$download_dir/*.rpm 2> /tmp/wget.log + wget -l inf -N -r --waitretry=10 --random-wait --retry-connrefused -t 10 -T 60 -nH --cut-dirs=5 ftp://$SITEMASTER/$download_dir/*.rpm 2> /tmp/wget.log rpm -Uvh essl.license*.rpm install_essl=`find /opt/ibmmath/essl -name install_essl -print` $install_essl -y -d . -nodocs diff --git a/xCAT-IBMhpc/share/xcat/IBMhpc/gpfs/gpfs_updates b/xCAT-IBMhpc/share/xcat/IBMhpc/gpfs/gpfs_updates index 57cefb25e..96d25fbad 100755 --- a/xCAT-IBMhpc/share/xcat/IBMhpc/gpfs/gpfs_updates +++ b/xCAT-IBMhpc/share/xcat/IBMhpc/gpfs/gpfs_updates @@ -41,7 +41,7 @@ if [ $OS != "AIX" ]; then mkdir -p /tmp/gpfs_updates rm -f -R /tmp/gpfs_updates/* cd /tmp/gpfs_updates - wget -l inf -N -r --waitretry=10 --random-wait --retry-connrefused -t 0 -T 60 -nH --cut-dirs=3 ftp://$SITEMASTER/$UPDATES_DIR/*.rpm 2> /tmp/wget.log + wget -l inf -N -r --waitretry=10 --random-wait --retry-connrefused -t 10 -T 60 -nH --cut-dirs=3 ftp://$SITEMASTER/$UPDATES_DIR/*.rpm 2> /tmp/wget.log rpm -Uvh *.rpm rm -f -R /tmp/gpfs_updates fi diff --git a/xCAT-IBMhpc/share/xcat/IBMhpc/loadl/loadl_install b/xCAT-IBMhpc/share/xcat/IBMhpc/loadl/loadl_install index 1e2a0d443..32ab88652 100755 --- a/xCAT-IBMhpc/share/xcat/IBMhpc/loadl/loadl_install +++ b/xCAT-IBMhpc/share/xcat/IBMhpc/loadl/loadl_install @@ -41,7 +41,7 @@ if [ $OS != "AIX" ]; then rm -f -R /tmp/loadl/* cd /tmp/loadl download_dir=`echo $LOADL_DIR | cut -d '/' -f3-` - wget -l inf -N -r --waitretry=10 --random-wait --retry-connrefused -t 0 -T 60 -nH --cut-dirs=5 ftp://$SITEMASTER/$download_dir/*.rpm 2> /tmp/wget.log + wget -l inf -N -r --waitretry=10 --random-wait --retry-connrefused -t 10 -T 60 -nH --cut-dirs=5 ftp://$SITEMASTER/$download_dir/*.rpm 2> /tmp/wget.log rpm -Uvh LoadL-full-license*.rpm $linux_loadl_license_script -c resmgr -y -d . rm -Rf /tmp/loadl diff --git a/xCAT-IBMhpc/share/xcat/IBMhpc/pe/pe_install b/xCAT-IBMhpc/share/xcat/IBMhpc/pe/pe_install index 0e0008cc3..cebc4f19a 100755 --- a/xCAT-IBMhpc/share/xcat/IBMhpc/pe/pe_install +++ b/xCAT-IBMhpc/share/xcat/IBMhpc/pe/pe_install @@ -41,7 +41,7 @@ if [ $OS != "AIX" ]; then rm -f -R /tmp/pe/* cd /tmp/pe download_dir=`echo $PE_DIR | cut -d '/' -f3-` - wget -l inf -N -r --waitretry=10 --random-wait --retry-connrefused -t 0 -T 60 -nH --cut-dirs=5 ftp://$SITEMASTER/$download_dir/*.rpm 2> /tmp/wget.log + wget -l inf -N -r --waitretry=10 --random-wait --retry-connrefused -t 10 -T 60 -nH --cut-dirs=5 ftp://$SITEMASTER/$download_dir/*.rpm 2> /tmp/wget.log rpm -Uvh IBM_pe_license*.rpm IBM_PE_LICENSE_PROMPT=N /opt/ibmhpc/install/sbin/accept_ppe_license.sh rpm -Uvh --force ibm_lapi*.rpm ibm_pe*.rpm ppe_*.rpm