|
@@ -151,9 +151,9 @@ Upgrade_OpenResty() {
|
|
if [ "${NEW_openresy_ver}" != "${OLD_openresy_ver}" ]; then
|
|
if [ "${NEW_openresy_ver}" != "${OLD_openresy_ver}" ]; then
|
|
[ ! -e "openresty-${NEW_openresy_ver}.tar.gz" ] && wget --no-check-certificate -c https://openresty.org/download/openresty-${NEW_openresy_ver}.tar.gz > /dev/null 2>&1
|
|
[ ! -e "openresty-${NEW_openresy_ver}.tar.gz" ] && wget --no-check-certificate -c https://openresty.org/download/openresty-${NEW_openresy_ver}.tar.gz > /dev/null 2>&1
|
|
if [ -e "openresty-${NEW_openresy_ver}.tar.gz" ]; then
|
|
if [ -e "openresty-${NEW_openresy_ver}.tar.gz" ]; then
|
|
- src_url=https://www.openssl.org/source/openssl-${openssl_ver}.tar.gz && Download_src
|
|
|
|
|
|
+ src_url=https://www.openssl.org/source/openssl-${openssl11_ver}.tar.gz && Download_src
|
|
src_url=http://mirrors.linuxeye.com/oneinstack/src/pcre-${pcre_ver}.tar.gz && Download_src
|
|
src_url=http://mirrors.linuxeye.com/oneinstack/src/pcre-${pcre_ver}.tar.gz && Download_src
|
|
- tar xzf openssl-${openssl_ver}.tar.gz
|
|
|
|
|
|
+ tar xzf openssl-${openssl11_ver}.tar.gz
|
|
tar xzf pcre-${pcre_ver}.tar.gz
|
|
tar xzf pcre-${pcre_ver}.tar.gz
|
|
echo "Download [${CMSG}openresty-${NEW_openresy_ver}.tar.gz${CEND}] successfully! "
|
|
echo "Download [${CMSG}openresty-${NEW_openresy_ver}.tar.gz${CEND}] successfully! "
|
|
break
|
|
break
|
|
@@ -173,13 +173,11 @@ Upgrade_OpenResty() {
|
|
char=`get_char`
|
|
char=`get_char`
|
|
fi
|
|
fi
|
|
tar xzf openresty-${NEW_openresy_ver}.tar.gz
|
|
tar xzf openresty-${NEW_openresy_ver}.tar.gz
|
|
- [ "${Fedora_ver}" == '28' ] && patch -d openresty-${openresty_ver}/bundle/nginx-${NEW_openresy_ver%.*} -p1 < 0001-unix-ngx_user-Apply-fix-for-really-old-bug-in-glibc-.patch
|
|
|
|
- patch -d openresty-${openresty_ver}/bundle/nginx-${NEW_openresy_ver%.*} -p0 < nginx-auto-cc-gcc.patch
|
|
|
|
pushd openresty-${NEW_openresy_ver}
|
|
pushd openresty-${NEW_openresy_ver}
|
|
make clean
|
|
make clean
|
|
sed -i 's@CFLAGS="$CFLAGS -g"@#CFLAGS="$CFLAGS -g"@' bundle/nginx-${NEW_openresy_ver%.*}/auto/cc/gcc # close debug
|
|
sed -i 's@CFLAGS="$CFLAGS -g"@#CFLAGS="$CFLAGS -g"@' bundle/nginx-${NEW_openresy_ver%.*}/auto/cc/gcc # close debug
|
|
${openresty_install_dir}/nginx/sbin/nginx -V &> $$
|
|
${openresty_install_dir}/nginx/sbin/nginx -V &> $$
|
|
- ./configure --prefix=${openresty_install_dir} --user=${run_user} --group=${run_user} --with-http_stub_status_module --with-http_v2_module --with-http_ssl_module --with-http_gzip_static_module --with-http_realip_module --with-http_flv_module --with-http_mp4_module --with-openssl=../openssl-${openssl_ver} --with-pcre=../pcre-${pcre_ver} --with-pcre-jit --with-ld-opt='-ljemalloc' ${nginx_modules_options}
|
|
|
|
|
|
+ ./configure --prefix=${openresty_install_dir} --user=${run_user} --group=${run_user} --with-http_stub_status_module --with-http_v2_module --with-http_ssl_module --with-http_gzip_static_module --with-http_realip_module --with-http_flv_module --with-http_mp4_module --with-openssl=../openssl-${openssl11_ver} --with-pcre=../pcre-${pcre_ver} --with-pcre-jit --with-ld-opt='-ljemalloc' ${nginx_modules_options}
|
|
make -j ${THREAD}
|
|
make -j ${THREAD}
|
|
if [ -f "build/nginx-${openresty_ver_tmp}/objs/nginx" ]; then
|
|
if [ -f "build/nginx-${openresty_ver_tmp}/objs/nginx" ]; then
|
|
/bin/mv ${openresty_install_dir}/nginx/sbin/nginx{,`date +%m%d`}
|
|
/bin/mv ${openresty_install_dir}/nginx/sbin/nginx{,`date +%m%d`}
|