From 930b86a6715bdfcdad70d56a0015720f6d0b3060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Fri, 1 Dec 2023 21:58:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=20OpenSSL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/mysql/install.sh | 14 +++++++------- scripts/mysql/update.sh | 14 +++++++------- scripts/openresty/install.sh | 14 +++++++------- scripts/php/install.sh | 14 +++++++------- 4 files changed, 28 insertions(+), 28 deletions(-) diff --git a/scripts/mysql/install.sh b/scripts/mysql/install.sh index 73cf5ea104..c231a5f013 100644 --- a/scripts/mysql/install.sh +++ b/scripts/mysql/install.sh @@ -86,21 +86,21 @@ rm -f mysql-boost-${mysqlVersion}.tar.gz.checksum.txt mv mysql-${mysqlVersion} src # openssl -wget -T 120 -t 3 -O ${mysqlPath}/openssl-1.1.1u.tar.gz ${downloadUrl}/openssl/openssl-1.1.1u.tar.gz -wget -T 20 -t 3 -O ${mysqlPath}/openssl-1.1.1u.tar.gz.checksum.txt ${downloadUrl}/openssl/openssl-1.1.1u.tar.gz.checksum.txt +wget -T 120 -t 3 -O ${mysqlPath}/openssl-1.1.1w.tar.gz ${downloadUrl}/openssl/openssl-1.1.1w.tar.gz +wget -T 20 -t 3 -O ${mysqlPath}/openssl-1.1.1w.tar.gz.checksum.txt ${downloadUrl}/openssl/openssl-1.1.1w.tar.gz.checksum.txt # 校验 -if ! sha256sum --status -c openssl-1.1.1u.tar.gz.checksum.txt; then +if ! sha256sum --status -c openssl-1.1.1w.tar.gz.checksum.txt; then echo -e $HR echo "错误:OpenSSL 源码 checksum 校验失败,文件可能被篡改或不完整,已终止操作" rm -rf ${mysqlPath} exit 1 fi -tar -zxvf openssl-1.1.1u.tar.gz -rm -f openssl-1.1.1u.tar.gz -rm -f openssl-1.1.1u.tar.gz.checksum.txt -mv openssl-1.1.1u openssl +tar -zxvf openssl-1.1.1w.tar.gz +rm -f openssl-1.1.1w.tar.gz +rm -f openssl-1.1.1w.tar.gz.checksum.txt +mv openssl-1.1.1w openssl cd openssl ./config --prefix=/usr/local/openssl-1.1 --openssldir=/usr/local/openssl-1.1 no-tests make -j$(nproc) diff --git a/scripts/mysql/update.sh b/scripts/mysql/update.sh index daa858adc9..00ed05249e 100644 --- a/scripts/mysql/update.sh +++ b/scripts/mysql/update.sh @@ -80,19 +80,19 @@ rm -f mysql-boost-${mysqlVersion}.tar.gz.checksum.txt mv mysql-${mysqlVersion} src # openssl -wget -T 120 -t 3 -O ${mysqlPath}/openssl-1.1.1u.tar.gz ${downloadUrl}/openssl/openssl-1.1.1u.tar.gz -wget -T 20 -t 3 -O ${mysqlPath}/openssl-1.1.1u.tar.gz.checksum.txt ${downloadUrl}/openssl/openssl-1.1.1u.tar.gz.checksum.txt +wget -T 120 -t 3 -O ${mysqlPath}/openssl-1.1.1w.tar.gz ${downloadUrl}/openssl/openssl-1.1.1w.tar.gz +wget -T 20 -t 3 -O ${mysqlPath}/openssl-1.1.1w.tar.gz.checksum.txt ${downloadUrl}/openssl/openssl-1.1.1w.tar.gz.checksum.txt -if ! sha256sum --status -c openssl-1.1.1u.tar.gz.checksum.txt; then +if ! sha256sum --status -c openssl-1.1.1w.tar.gz.checksum.txt; then echo -e $HR echo "错误:OpenSSL 源码 checksum 校验失败,文件可能被篡改或不完整,已终止操作" exit 1 fi -tar -zxvf openssl-1.1.1u.tar.gz -rm -f openssl-1.1.1u.tar.gz -rm -f openssl-1.1.1u.tar.gz.checksum.txt -mv openssl-1.1.1u openssl +tar -zxvf openssl-1.1.1w.tar.gz +rm -f openssl-1.1.1w.tar.gz +rm -f openssl-1.1.1w.tar.gz.checksum.txt +mv openssl-1.1.1w openssl cd openssl ./config --prefix=/usr/local/openssl-1.1 --openssldir=/usr/local/openssl-1.1 no-tests make "-j${j}" diff --git a/scripts/openresty/install.sh b/scripts/openresty/install.sh index 40fdefd14c..e9ab519ce6 100644 --- a/scripts/openresty/install.sh +++ b/scripts/openresty/install.sh @@ -67,20 +67,20 @@ mv openresty-${openrestyVersion} src cd src # openssl -wget -T 120 -t 3 -O openssl-1.1.1u.tar.gz ${downloadUrl}/openssl/openssl-1.1.1u.tar.gz -wget -T 20 -t 3 -O openssl-1.1.1u.tar.gz.checksum.txt ${downloadUrl}/openssl/openssl-1.1.1u.tar.gz.checksum.txt +wget -T 120 -t 3 -O openssl-1.1.1w.tar.gz ${downloadUrl}/openssl/openssl-1.1.1w.tar.gz +wget -T 20 -t 3 -O openssl-1.1.1w.tar.gz.checksum.txt ${downloadUrl}/openssl/openssl-1.1.1w.tar.gz.checksum.txt -if ! sha256sum --status -c openssl-1.1.1u.tar.gz.checksum.txt; then +if ! sha256sum --status -c openssl-1.1.1w.tar.gz.checksum.txt; then echo -e $HR echo "错误:OpenSSL 源码 checksum 校验失败,文件可能被篡改或不完整,已终止操作" rm -rf ${openrestyPath} exit 1 fi -tar -zxvf openssl-1.1.1u.tar.gz -rm -f openssl-1.1.1u.tar.gz -rm -f openssl-1.1.1u.tar.gz.checksum.txt -mv openssl-1.1.1u openssl +tar -zxvf openssl-1.1.1w.tar.gz +rm -f openssl-1.1.1w.tar.gz +rm -f openssl-1.1.1w.tar.gz.checksum.txt +mv openssl-1.1.1w openssl # pcre wget -T 60 -t 3 -O pcre-8.45.tar.gz ${downloadUrl}/pcre/pcre-8.45.tar.gz diff --git a/scripts/php/install.sh b/scripts/php/install.sh index d43043996a..36fb0686dd 100644 --- a/scripts/php/install.sh +++ b/scripts/php/install.sh @@ -92,20 +92,20 @@ rm -f php-${phpVersionCode}.tar.gz.checksum.txt mv php-* src if [ "${phpVersion}" -le "80" ]; then - wget -T 120 -t 3 -O ${phpPath}/openssl-1.1.1u.tar.gz ${downloadUrl}/openssl/openssl-1.1.1u.tar.gz - wget -T 20 -t 3 -O ${phpPath}/openssl-1.1.1u.tar.gz.checksum.txt ${downloadUrl}/openssl/openssl-1.1.1u.tar.gz.checksum.txt + wget -T 120 -t 3 -O ${phpPath}/openssl-1.1.1w.tar.gz ${downloadUrl}/openssl/openssl-1.1.1w.tar.gz + wget -T 20 -t 3 -O ${phpPath}/openssl-1.1.1w.tar.gz.checksum.txt ${downloadUrl}/openssl/openssl-1.1.1w.tar.gz.checksum.txt - if ! sha256sum --status -c openssl-1.1.1u.tar.gz.checksum.txt; then + if ! sha256sum --status -c openssl-1.1.1w.tar.gz.checksum.txt; then echo -e $HR echo "错误:PHP-${phpVersion} OpenSSL 源码 checksum 校验失败,文件可能被篡改或不完整,已终止操作" rm -rf ${phpPath} exit 1 fi - tar -zxvf openssl-1.1.1u.tar.gz - rm -f openssl-1.1.1u.tar.gz - rm -f openssl-1.1.1u.tar.gz.checksum.txt - mv openssl-1.1.1u openssl + tar -zxvf openssl-1.1.1w.tar.gz + rm -f openssl-1.1.1w.tar.gz + rm -f openssl-1.1.1w.tar.gz.checksum.txt + mv openssl-1.1.1w openssl cd openssl ./config --prefix=/usr/local/openssl-1.1 --openssldir=/usr/local/openssl-1.1 no-tests make "-j${j}"