From 45e46b682678efc00b16e48914ba0718ff3ad008 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 14 Jun 2024 14:56:02 +0800 Subject: [PATCH] Update opcache.sh --- plugins/php-yum/versions/common/opcache.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/php-yum/versions/common/opcache.sh b/plugins/php-yum/versions/common/opcache.sh index ab36be1a8..ab8cff9f9 100755 --- a/plugins/php-yum/versions/common/opcache.sh +++ b/plugins/php-yum/versions/common/opcache.sh @@ -27,7 +27,7 @@ ext_file=${ext_dir}/10-opcache.ini if [ "$actionType" == 'install' ];then yum install -y php${version}-php-${LIBNAME} - echo "ls ${cfgDir}/php${version}/php.d | grep "${LIBNAME}"| cut -d \ -f 1" + echo "ls ${cfgDir}/php${version}/php.d | grep "${LIBNAME}.ini"| cut -d \ -f 1" find_opcache=`ls ${cfgDir}/php${version}/php.d | grep "${LIBNAME}"| cut -d \ -f 1` echo $find_opcache if [ "$find_opcache" != "" ];then