From 93f1129c0f40fd642458271ab39bcf09bd845e8f Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 2 Dec 2022 22:36:35 +0800 Subject: [PATCH] Update gd.sh --- plugins/php/versions/common/gd.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/plugins/php/versions/common/gd.sh b/plugins/php/versions/common/gd.sh index 1195fe407..bdc9b3e7e 100755 --- a/plugins/php/versions/common/gd.sh +++ b/plugins/php/versions/common/gd.sh @@ -18,9 +18,16 @@ LIBNAME=gd LIBV=0 -if [ "$version" -lt "74" ];then - bash $curPath/gd_old.sh $1 $2 - exit 0 +bash ${rootPath}/scripts/getos.sh +OSNAME=`cat ${rootPath}/data/osname.pl` +OSNAME_ID=`cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | awk -F "\"" '{print $2}'` + + +if [ "centos" == "$OSNAME" ] || [ "OSNAME_ID" != "9" ];then + if [ "$version" -lt "74" ];then + bash $curPath/gd_old.sh $1 $2 + exit 0 + fi fi