From dd328c89d7141e6e9808d418a9f1402370fae61b Mon Sep 17 00:00:00 2001 From: midoks Date: Thu, 7 Jul 2022 18:35:38 +0800 Subject: [PATCH] up --- plugins/php-yum/versions/common.sh | 13 +++++++ plugins/php-yum/versions/phplib.conf | 58 ++++++++++++++-------------- 2 files changed, 42 insertions(+), 29 deletions(-) diff --git a/plugins/php-yum/versions/common.sh b/plugins/php-yum/versions/common.sh index 2b823e5ae..143e481e8 100644 --- a/plugins/php-yum/versions/common.sh +++ b/plugins/php-yum/versions/common.sh @@ -17,3 +17,16 @@ echo $1,$2,$3 echo $curPath echo $rootPath echo $serverPath + +# yum install -y php81-php-yar +if [ "$action" == 'install' ];then + yum install -y php$1-php-$2 +fi + + +# yum remove -y php81-php-yar +if [ "$action" == 'uninstall' ];then + yum remove -y php$1-php-$2 +fi + + diff --git a/plugins/php-yum/versions/phplib.conf b/plugins/php-yum/versions/phplib.conf index d1c903c96..bc20b6fe5 100755 --- a/plugins/php-yum/versions/phplib.conf +++ b/plugins/php-yum/versions/phplib.conf @@ -9,7 +9,7 @@ "type": "脚本解密", "msg": "用于解密ZendGuard加密脚本!", "shell": "zend_guard_loader.sh", - "check": "ZendGuardLoader.so" + "check": "ZendGuardLoader" }, { "name": "ZendOptimizer", @@ -19,7 +19,7 @@ "type": "脚本解密", "msg": "用于解密ZendOptimizer加密脚本!", "shell": "zend_optimizer.sh", - "check": "ZendOptimizer.so" + "check": "ZendOptimizer" }, { "name": "ionCube", @@ -38,7 +38,7 @@ "type": "脚本解密", "msg": "用于解密ionCube Encoder加密脚本!", "shell": "ioncube.sh", - "check": "ioncube.so" + "check": "ioncube" }, { "name": "opcache", @@ -58,7 +58,7 @@ "type": "缓存器", "msg": "用于加速PHP脚本!", "shell": "opcache.sh", - "check": "opcache.so" + "check": "opcache" }, { "name": "openssl", @@ -77,7 +77,7 @@ "type": "通用扩展", "msg": "SSL!", "shell": "openssl.sh", - "check": "openssl.so" + "check": "openssl" }, { "name": "mcrypt", @@ -92,7 +92,7 @@ "type": "通用扩展", "msg": "加密软件!", "shell": "mcrypt.sh", - "check": "mcrypt.so" + "check": "mcrypt" }, { "name": "pcntl", @@ -112,7 +112,7 @@ "type": "缓存器", "msg": "用于信号控制!", "shell": "pcntl.sh", - "check": "pcntl.so" + "check": "pcntl" }, { "name": "fileinfo", @@ -132,7 +132,7 @@ "type": "通用扩展", "msg": "用于FILE!", "shell": "fileinfo.sh", - "check": "fileinfo.so" + "check": "fileinfo" }, { "name": "exif", @@ -152,7 +152,7 @@ "type": "通用扩展", "msg": "用于图像文件格式!", "shell": "exif.sh", - "check": "exif.so" + "check": "exif" }, { "name": "gd", @@ -165,7 +165,7 @@ "type": "通用扩展", "msg": "通用GD库!", "shell": "gd.sh", - "check": "gd.so" + "check": "gd" }, { "name": "intl", @@ -186,7 +186,7 @@ "type": "通用扩展", "msg": "提供国际化支持", "shell": "intl.sh", - "check": "intl.so" + "check": "intl" }, { "name": "memcache", @@ -200,7 +200,7 @@ "type": "缓存器", "msg": "强大的内容缓存器,不支持集群", "shell": "memcache.sh", - "check": "memcache.so" + "check": "memcache" }, { "name": "memcached", @@ -220,7 +220,7 @@ "type": "缓存器", "msg": "强大的内容缓存器,支持集群", "shell": "memcached.sh", - "check": "memcached.so" + "check": "memcached" }, { "name": "redis", @@ -241,7 +241,7 @@ "type": "缓存器", "msg": "更强大的内容缓存器,支持集群", "shell": "redis.sh", - "check": "redis.so" + "check": "redis" }, { "name": "apc", @@ -252,7 +252,7 @@ "type": "缓存器", "msg": "脚本缓存器", "shell": "apc.sh", - "check": "apc.so" + "check": "apc" }, { "name": "imagemagick", @@ -271,7 +271,7 @@ "type": "通用扩展", "msg": "比GD更强大的图形库", "shell": "imagemagick.sh", - "check": "imagick.so" + "check": "imagick" }, { "name": "xdebug", @@ -290,7 +290,7 @@ "type": "调试器", "msg": "不多说,不了解的不要安装", "shell": "xdebug.sh", - "check": "xdebug.so" + "check": "xdebug" }, { "name": "xhprof", @@ -311,7 +311,7 @@ "type": "性能分析", "msg": "不多说,不了解的不要安装!", "shell": "xhprof.sh", - "check": "xhprof.so" + "check": "xhprof" }, { "name": "Swoole", @@ -330,7 +330,7 @@ "type": "通用扩展", "msg": "异步、并行、高性能网络通信引擎", "shell": "swoole.sh", - "check": "swoole.so" + "check": "swoole" }, { "name": "eAccelerator", @@ -341,7 +341,7 @@ "type": "缓存器", "msg": "内容缓存器", "shell": "eaccelerator.sh", - "check": "eaccelerator.so" + "check": "eaccelerator" }, { "name": "yaf", @@ -361,7 +361,7 @@ "type": "框架", "msg": "Yaf是一个C语言编写的PHP框架", "shell": "yaf.sh", - "check": "yaf.so" + "check": "yaf" }, { "name": "yar", @@ -381,7 +381,7 @@ "type": "框架", "msg": "Yar是一个RPC框架", "shell": "yar.sh", - "check": "yar.so" + "check": "yar" }, { "name": "mongo", @@ -394,7 +394,7 @@ "type": "通用扩展", "msg": "Mongodb数据库连接驱动", "shell": "mongo.sh", - "check": "mongo.so" + "check": "mongo" }, { "name": "mongodb", @@ -412,7 +412,7 @@ "type": "通用扩展", "msg": "Mongodb数据库连接驱动", "shell": "mongodb.sh", - "check": "mongodb.so" + "check": "mongodb" }, { "name": "yac", @@ -428,7 +428,7 @@ "type": "缓存器", "msg": "高性能无锁共享内存Cache", "shell": "yac.sh", - "check": "yac.so" + "check": "yac" }, { "name": "solr", @@ -448,7 +448,7 @@ "type": "大数据", "msg": "SOLR全文搜索服务", "shell": "solr.sh", - "check": "solr.so" + "check": "solr" }, { "name": "seaslog", @@ -468,7 +468,7 @@ "type": "日志", "msg": "SeasLog高性能日志记录", "shell": "seaslog.sh", - "check": "seaslog.so" + "check": "seaslog" }, { "name": "zip", @@ -484,7 +484,7 @@ "type": "压缩", "msg": "压缩组件", "shell": "zip.sh", - "check": "zip.so" + "check": "zip" }, { "name": "zlib", @@ -500,6 +500,6 @@ "type": "压缩", "msg": "压缩组件", "shell": "zlib.sh", - "check": "zlib.so" + "check": "zlib" } ] \ No newline at end of file