Use 5 retries in curl (#23112)
This commit is contained in:
parent
0dc6aa66a5
commit
0a02cd88b7
|
|
@ -37,10 +37,10 @@ cleanup() {
|
||||||
|
|
||||||
trap "cleanup" EXIT
|
trap "cleanup" EXIT
|
||||||
cd "$tmp"
|
cd "$tmp"
|
||||||
curl -Lsfo $(basename $url) "$url"
|
curl -Lsfo $(basename $url) "$url" --retry 5
|
||||||
echo "Installing java from $(basename $url) $url"
|
echo "Installing java from $(basename $url) $url"
|
||||||
mkdir $output_dir
|
mkdir $output_dir
|
||||||
echo "Unpacking to $output_dir"
|
echo "Unpacking to $output_dir"
|
||||||
tar --strip-components 1 -xzf "jdk-${java_version}_${platformarch}_bin.tar.gz" --no-same-owner --directory "$output_dir"
|
tar --strip-components 1 -xzf "jdk-${java_version}_${platformarch}_bin.tar.gz" --no-same-owner --directory "$output_dir"
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ cleanup() {
|
||||||
|
|
||||||
trap "cleanup" EXIT
|
trap "cleanup" EXIT
|
||||||
cd "$tmp"
|
cd "$tmp"
|
||||||
curl -Lsfo $(basename $url) "$url"
|
curl -Lsfo $(basename $url) "$url" --retry 5
|
||||||
echo "Installing node from $(basename $url) $url"
|
echo "Installing node from $(basename $url) $url"
|
||||||
mkdir $output_dir
|
mkdir $output_dir
|
||||||
echo "Unpacking to $output_dir"
|
echo "Unpacking to $output_dir"
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ scriptroot="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
reporoot="$(dirname "$(dirname "$scriptroot")")"
|
reporoot="$(dirname "$(dirname "$scriptroot")")"
|
||||||
nginxinstall="$reporoot/.tools/nginx"
|
nginxinstall="$reporoot/.tools/nginx"
|
||||||
|
|
||||||
curl -sSL http://nginx.org/download/nginx-1.14.2.tar.gz | tar zxfv - -C /tmp && cd /tmp/nginx-1.14.2/
|
curl -sSL http://nginx.org/download/nginx-1.14.2.tar.gz --retry 5 | tar zxfv - -C /tmp && cd /tmp/nginx-1.14.2/
|
||||||
./configure --prefix=$nginxinstall --with-http_ssl_module --without-http_rewrite_module
|
./configure --prefix=$nginxinstall --with-http_ssl_module --without-http_rewrite_module
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue