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