From a69ff3e37337987de43b681737388e3b255abd60 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Tue, 16 Jan 2024 01:18:27 +0800 Subject: [PATCH] =?UTF-8?q?php=E6=9B=B4=E6=96=B0=E5=8A=A0=E5=AF=86?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/php/versions/81/install.sh | 2 +- plugins/php/versions/82/install.sh | 2 +- plugins/php/versions/83/install.sh | 16 ++++++++-------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/plugins/php/versions/81/install.sh b/plugins/php/versions/81/install.sh index f660502f1..e21acb9b5 100755 --- a/plugins/php/versions/81/install.sh +++ b/plugins/php/versions/81/install.sh @@ -56,7 +56,7 @@ if [ ! -d $sourcePath/php/php${PHP_VER} ];then fi #检测文件是否损坏. - md5_file_ok=ee61f6232bb29bd2e785daf325d2177f2272bf80d086c295a724594e710bce3d + md5_file_ok=479e65c3f05714d4aace1370e617d78e49e996ec7a7579a5be47535be61f0658 if [ -f $sourcePath/php/php-${version}.tar.xz ];then md5_file=`sha256sum $sourcePath/php/php-${version}.tar.xz | awk '{print $1}'` if [ "${md5_file}" != "${md5_file_ok}" ]; then diff --git a/plugins/php/versions/82/install.sh b/plugins/php/versions/82/install.sh index e4134a6a8..9cd5ff466 100755 --- a/plugins/php/versions/82/install.sh +++ b/plugins/php/versions/82/install.sh @@ -57,7 +57,7 @@ if [ ! -d $sourcePath/php/php${PHP_VER} ];then fi #检测文件是否损坏. - md5_file_ok=29af82e4f7509831490552918aad502697453f0869a579ee1b80b08f9112c5b8 + md5_file_ok=4c1fbb55a10ece7f4532feba9f3f88b9b211c11320742977588738374c03255f if [ -f $sourcePath/php/php-${version}.tar.xz ];then md5_file=`sha256sum $sourcePath/php/php-${version}.tar.xz | awk '{print $1}'` if [ "${md5_file}" != "${md5_file_ok}" ]; then diff --git a/plugins/php/versions/83/install.sh b/plugins/php/versions/83/install.sh index e91bfd3a4..7669d8bb2 100755 --- a/plugins/php/versions/83/install.sh +++ b/plugins/php/versions/83/install.sh @@ -56,14 +56,14 @@ if [ ! -d $sourcePath/php/php${PHP_VER} ];then fi #检测文件是否损坏. - # md5_file_ok=1db84fec57125aa93638b51bb2b15103e12ac196e2f960f0d124275b2687ea54 - # if [ -f $sourcePath/php/php-${version}.tar.xz ];then - # md5_file=`sha256sum $sourcePath/php/php-${version}.tar.xz | awk '{print $1}'` - # if [ "${md5_file}" != "${md5_file_ok}" ]; then - # echo "PHP${version} 下载文件不完整,重新安装" - # rm -rf $sourcePath/php/php-${version}.tar.xz - # fi - # fi + md5_file_ok=2b10218b5e81915d1708ab4b6351362d073556ec73a790553c61fd89c119924e + if [ -f $sourcePath/php/php-${version}.tar.xz ];then + md5_file=`sha256sum $sourcePath/php/php-${version}.tar.xz | awk '{print $1}'` + if [ "${md5_file}" != "${md5_file_ok}" ]; then + echo "PHP${version} 下载文件不完整,重新安装" + rm -rf $sourcePath/php/php-${version}.tar.xz + fi + fi cd $sourcePath/php && tar -Jxf $sourcePath/php/php-${version}.tar.xz mv $sourcePath/php/php-${version} $sourcePath/php/php${PHP_VER}