php更新加密校验

pull/522/head
Mr Chen 1 year ago
parent 770d37e575
commit a69ff3e373
  1. 2
      plugins/php/versions/81/install.sh
  2. 2
      plugins/php/versions/82/install.sh
  3. 16
      plugins/php/versions/83/install.sh

@ -56,7 +56,7 @@ if [ ! -d $sourcePath/php/php${PHP_VER} ];then
fi fi
#检测文件是否损坏. #检测文件是否损坏.
md5_file_ok=ee61f6232bb29bd2e785daf325d2177f2272bf80d086c295a724594e710bce3d md5_file_ok=479e65c3f05714d4aace1370e617d78e49e996ec7a7579a5be47535be61f0658
if [ -f $sourcePath/php/php-${version}.tar.xz ];then if [ -f $sourcePath/php/php-${version}.tar.xz ];then
md5_file=`sha256sum $sourcePath/php/php-${version}.tar.xz | awk '{print $1}'` md5_file=`sha256sum $sourcePath/php/php-${version}.tar.xz | awk '{print $1}'`
if [ "${md5_file}" != "${md5_file_ok}" ]; then if [ "${md5_file}" != "${md5_file_ok}" ]; then

@ -57,7 +57,7 @@ if [ ! -d $sourcePath/php/php${PHP_VER} ];then
fi fi
#检测文件是否损坏. #检测文件是否损坏.
md5_file_ok=29af82e4f7509831490552918aad502697453f0869a579ee1b80b08f9112c5b8 md5_file_ok=4c1fbb55a10ece7f4532feba9f3f88b9b211c11320742977588738374c03255f
if [ -f $sourcePath/php/php-${version}.tar.xz ];then if [ -f $sourcePath/php/php-${version}.tar.xz ];then
md5_file=`sha256sum $sourcePath/php/php-${version}.tar.xz | awk '{print $1}'` md5_file=`sha256sum $sourcePath/php/php-${version}.tar.xz | awk '{print $1}'`
if [ "${md5_file}" != "${md5_file_ok}" ]; then if [ "${md5_file}" != "${md5_file_ok}" ]; then

@ -56,14 +56,14 @@ if [ ! -d $sourcePath/php/php${PHP_VER} ];then
fi fi
#检测文件是否损坏. #检测文件是否损坏.
# md5_file_ok=1db84fec57125aa93638b51bb2b15103e12ac196e2f960f0d124275b2687ea54 md5_file_ok=2b10218b5e81915d1708ab4b6351362d073556ec73a790553c61fd89c119924e
# if [ -f $sourcePath/php/php-${version}.tar.xz ];then if [ -f $sourcePath/php/php-${version}.tar.xz ];then
# md5_file=`sha256sum $sourcePath/php/php-${version}.tar.xz | awk '{print $1}'` md5_file=`sha256sum $sourcePath/php/php-${version}.tar.xz | awk '{print $1}'`
# if [ "${md5_file}" != "${md5_file_ok}" ]; then if [ "${md5_file}" != "${md5_file_ok}" ]; then
# echo "PHP${version} 下载文件不完整,重新安装" echo "PHP${version} 下载文件不完整,重新安装"
# rm -rf $sourcePath/php/php-${version}.tar.xz rm -rf $sourcePath/php/php-${version}.tar.xz
# fi fi
# fi fi
cd $sourcePath/php && tar -Jxf $sourcePath/php/php-${version}.tar.xz cd $sourcePath/php && tar -Jxf $sourcePath/php/php-${version}.tar.xz
mv $sourcePath/php/php-${version} $sourcePath/php/php${PHP_VER} mv $sourcePath/php/php-${version} $sourcePath/php/php${PHP_VER}

Loading…
Cancel
Save