File tree Expand file tree Collapse file tree 1 file changed +14
-7
lines changed
kubernetes/samples/scripts/create-weblogic-domain/domain-home-on-pv/wdt Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -96,14 +96,21 @@ function install_wdt {
96
96
cd $WDT_DIR || return 1
97
97
98
98
local curl_res=1
99
- for proxy in " ${https_proxy} " " ${https_proxy2} " ; do
100
- echo @@ " Info: Downloading $WDT_INSTALL_ZIP_URL with https_proxy=\" $proxy \" "
101
- https_proxy=" ${proxy} " \
102
- curl --silent --show-error --connect-timeout 10 -O -L $WDT_INSTALL_ZIP_URL
103
- curl_res=$?
104
- [ $curl_res -eq 0 ] && break
99
+ max=20
100
+ count=0
101
+ while [ $curl_res -ne 0 -a $count -lt $max ] ; do
102
+ sleep 10
103
+ count=` expr $count + 1`
104
+ echo " before entering proxy"
105
+ for proxy in " ${https_proxy} " " ${https_proxy2} " ; do
106
+ echo " inside for loop"
107
+ echo @@ " Info: Downloading $WDT_INSTALL_ZIP_URL with https_proxy=\" $proxy \" "
108
+ https_proxy=" ${proxy} " \
109
+ curl --silent --show-error --connect-timeout 10 -O -L $WDT_INSTALL_ZIP_URL
110
+ curl_res=$?
111
+ [ $curl_res -eq 0 ] && break
112
+ done
105
113
done
106
-
107
114
if [ $curl_res -ne 0 ] || [ ! -f $WDT_INSTALL_ZIP_FILE ]; then
108
115
cd $save_dir
109
116
echo @@ " Error: Download failed or $WDT_INSTALL_ZIP_FILE not found."
You can’t perform that action at this time.
0 commit comments