From 0e31ce1662b65e6cf11029244382f420995f4a22 Mon Sep 17 00:00:00 2001 From: "Yichun Zhang (agentzh)" Date: Sat, 23 Jan 2016 12:01:41 -0800 Subject: [PATCH] util/mirror-tarballs: ensure we use https and enable certificate check. thanks Ivan Babrou for the reminder in #144. --- util/get-tarball | 2 +- util/mirror-tarballs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/util/get-tarball b/util/get-tarball index 0e6d6a8..f967fc1 100755 --- a/util/get-tarball +++ b/util/get-tarball @@ -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 diff --git a/util/mirror-tarballs b/util/mirror-tarballs index 0126d73..c13f99a 100755 --- a/util/mirror-tarballs +++ b/util/mirror-tarballs @@ -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