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

pull/177/head
Yichun Zhang (agentzh) 9 years ago
parent da90bd7671
commit 0e31ce1662

@ -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

@ -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

Loading…
Cancel
Save