util/mirror-tarballs: ensure we use https and enable certificate check. thanks Ivan Babrou for the reminder in #144.

This commit is contained in:
Yichun Zhang (agentzh) 2016-01-23 12:01:41 -08:00
parent da90bd7671
commit 0e31ce1662
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ cachefile=$work/$outfile
if [ -s $cachefile ]; then
cp $work/$outfile $outfile || exit 1
else
wget --no-check-certificate $1 -O $3 || exit 1
wget $1 -O $3 || exit 1
if [ $? == 0 ]; then
cp $3 $work/ || exit 1
fi

View File

@ -26,7 +26,7 @@ fi
#################################
ver="$main_ver"
$root/util/get-tarball "http://openresty.org/download/nginx-$ver.tar.gz" -O nginx-$ver.tar.gz || exit 1
$root/util/get-tarball "https://openresty.org/download/nginx-$ver.tar.gz" -O nginx-$ver.tar.gz || exit 1
tar -xzf nginx-$ver.tar.gz || exit 1
cd nginx-$ver || exit 1
@ -435,7 +435,7 @@ mv openresty-encrypted-session-nginx-module-* encrypted-session-nginx-module-$ve
#################################
ver=0.3.7
$root/util/get-tarball "http://people.freebsd.org/~osa/ngx_http_redis-$ver.tar.gz" -O redis-nginx-module-$ver.tar.gz || exit 1
$root/util/get-tarball "https://people.freebsd.org/~osa/ngx_http_redis-$ver.tar.gz" -O redis-nginx-module-$ver.tar.gz || exit 1
tar -xzf redis-nginx-module-$ver.tar.gz || exit 1
mv ngx_http_redis-* redis-nginx-module-$ver || exit 1