From 2f39e3277f6d4af3079cbc59c60d6c0380659603 Mon Sep 17 00:00:00 2001 From: dami Date: Thu, 2 Apr 2026 10:38:25 +0800 Subject: [PATCH] Update install.sh --- plugins/openresty/versions/1.27.1/install.sh | 22 ++++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/plugins/openresty/versions/1.27.1/install.sh b/plugins/openresty/versions/1.27.1/install.sh index 30c469f59..fc5a0fc17 100644 --- a/plugins/openresty/versions/1.27.1/install.sh +++ b/plugins/openresty/versions/1.27.1/install.sh @@ -117,16 +117,16 @@ Install_openresty() if [[ "$VERSION" =~ "1.27.1" ]];then OPTIONS="${OPTIONS} --with-http_v3_module" - if [ ! -f ${openrestyDir}/libressl-${libresslVersion}.tar.gz ];then - wget --no-check-certificate -O ${openrestyDir}/libressl-${libresslVersion}.tar.gz https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${libresslVersion}.tar.gz - fi + # if [ ! -f ${openrestyDir}/libressl-${libresslVersion}.tar.gz ];then + # wget --no-check-certificate -O ${openrestyDir}/libressl-${libresslVersion}.tar.gz https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${libresslVersion}.tar.gz + # fi - if [ ! -d ${openrestyDir}/libressl-${libresslVersion} ];then - cd ${openrestyDir} && tar -zxvf libressl-${libresslVersion}.tar.gz - fi + # if [ ! -d ${openrestyDir}/libressl-${libresslVersion} ];then + # cd ${openrestyDir} && tar -zxvf libressl-${libresslVersion}.tar.gz + # fi - OPTIONS="${OPTIONS} --with-cc-opt=-I${openrestyDir}/libressl-${libresslVersion}/libressl/build/include" - OPTIONS="${OPTIONS} --with-cc-opt=-I${openrestyDir}/libressl-${libresslVersion}/libressl/build/lib" + # OPTIONS="${OPTIONS} --with-cc-opt=-I${openrestyDir}/libressl-${libresslVersion}/libressl/build/include" + # OPTIONS="${OPTIONS} --with-cc-opt=-I${openrestyDir}/libressl-${libresslVersion}/libressl/build/lib" fi # br @@ -134,9 +134,13 @@ Install_openresty() cd ${openrestyDir}/openresty-${VERSION} && git clone https://github.com/wxx9248/ngx_brotli.git cd ${openrestyDir}/openresty-${VERSION}/ngx_brotli && git submodule update --init - OPTIONS="${OPTIONS} --add-module=./ngx_brotli" + OPTIONS="${OPTIONS} --add-module=${openrestyDir}/openresty-${VERSION}/ngx_brotli" fi + OPTIONS="${OPTIONS} --with-threads" + OPTIONS="${OPTIONS} --with-file-aio" + OPTIONS="${OPTIONS} --with-pcre-jit" + cd ${openrestyDir}/openresty-${VERSION} && ./configure \ --prefix=$serverPath/openresty \ $OPTIONS \