diff --git a/plugins/php-yum/versions/common.sh b/plugins/php-yum/versions/common.sh index 30527cf37..038a1fe07 100644 --- a/plugins/php-yum/versions/common.sh +++ b/plugins/php-yum/versions/common.sh @@ -22,13 +22,13 @@ FILE=${curPath}/${version}/${extName}.sh # yum install -y php81-php-yar -echo "action php${version}-php-${extName}" + if [ "$action" == 'install' ];then if [ -f $FILE ];then bash ${curPath}/${version}/${extName}.sh install else - yum install -y php${version}-php-${extName} + yum install -y php${version}-php*-${extName} fi fi @@ -39,8 +39,12 @@ if [ "$action" == 'uninstall' ];then if [ -f $FILE ];then bash ${curPath}/${version}/${extName}.sh uninstall else - yum remove -y php${version}-php-${extName} + yum remove -y php${version}-php*-${extName} fi fi +echo "yum install -y php${version}-php-${extName}" +echo "yum remove -y php${version}-php-${extName}" + + diff --git a/plugins/php-yum/versions/phplib.conf b/plugins/php-yum/versions/phplib.conf index bc20b6fe5..6fbca2820 100755 --- a/plugins/php-yum/versions/phplib.conf +++ b/plugins/php-yum/versions/phplib.conf @@ -485,21 +485,5 @@ "msg": "压缩组件", "shell": "zip.sh", "check": "zip" - }, - { - "name": "zlib", - "versions": [ - "70", - "71", - "72", - "73", - "74", - "80", - "81" - ], - "type": "压缩", - "msg": "压缩组件", - "shell": "zlib.sh", - "check": "zlib" } ] \ No newline at end of file