From c0a7e1ddba5dbff48ea8f4b18030abe3c02d78a2 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Sun, 15 Dec 2024 01:42:30 +0800 Subject: [PATCH] uppdate --- plugins/mysql-apt/versions/9.1/install.sh | 3 +++ plugins/php/lib/openssl.sh | 1 + plugins/php/lib/openssl_30.sh | 30 +++++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 plugins/php/lib/openssl_30.sh diff --git a/plugins/mysql-apt/versions/9.1/install.sh b/plugins/mysql-apt/versions/9.1/install.sh index 7cb776535..869abe255 100755 --- a/plugins/mysql-apt/versions/9.1/install.sh +++ b/plugins/mysql-apt/versions/9.1/install.sh @@ -52,6 +52,9 @@ SUFFIX_NAME=${MYSQL_VER}-1${OSNAME}${VERSION_ID}_${ARCH} APT_INSTALL() { + +cd ${rootPath}/plugins/php/lib && /bin/bash openssl_30.sh + ######## mkdir -p $myDir mkdir -p $serverPath/mysql-apt/bin diff --git a/plugins/php/lib/openssl.sh b/plugins/php/lib/openssl.sh index 7cd4a89c5..ba4802dec 100644 --- a/plugins/php/lib/openssl.sh +++ b/plugins/php/lib/openssl.sh @@ -7,6 +7,7 @@ rootPath=$(dirname "$curPath") rootPath=$(dirname "$rootPath") rootPath=$(dirname "$rootPath") rootPath=$(dirname "$rootPath") + opensslVersion="3.0.10" # echo $rootPath diff --git a/plugins/php/lib/openssl_30.sh b/plugins/php/lib/openssl_30.sh new file mode 100644 index 000000000..33c95d517 --- /dev/null +++ b/plugins/php/lib/openssl_30.sh @@ -0,0 +1,30 @@ +#!/bin/bash +PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin:/opt/homebrew/bin +export PATH + +curPath=`pwd` +rootPath=$(dirname "$curPath") +rootPath=$(dirname "$rootPath") +rootPath=$(dirname "$rootPath") +rootPath=$(dirname "$rootPath") + +opensslVersion="3.0.10" +# echo $rootPath + +SERVER_ROOT=$rootPath/lib +SOURCE_ROOT=$rootPath/source/lib +mkdir -p $SOURCE_ROOT + +if [ ! -d ${SERVER_ROOT}/openssl3 ];then + cd ${SOURCE_ROOT} + if [ ! -f ${SOURCE_ROOT}/openssl3-${opensslVersion}.tar.gz ];then + wget --no-check-certificate -O ${SOURCE_ROOT}/openssl-${opensslVersion}.tar.gz https://www.openssl.org/source/openssl-${opensslVersion}.tar.gz + fi + tar -zxvf openssl-${opensslVersion}.tar.gz + cd openssl-${opensslVersion} + ./config --prefix=${SERVER_ROOT}/openssl3 zlib-dynamic shared + make && make install + + cd $SOURCE_ROOT && rm -rf $SOURCE_ROOT/openssl-${opensslVersion} +fi +