From d0cdbf48d22a3dbbd5689741fe6eafa6cad915b7 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 14 Jun 2024 16:02:36 +0800 Subject: [PATCH] Update opcache.sh --- plugins/php-yum/versions/common/opcache.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/php-yum/versions/common/opcache.sh b/plugins/php-yum/versions/common/opcache.sh index 28aa93a74..873253b79 100755 --- a/plugins/php-yum/versions/common/opcache.sh +++ b/plugins/php-yum/versions/common/opcache.sh @@ -25,10 +25,6 @@ fi ext_dir=${cfgDir}/php${version}/php.d ext_file=${ext_dir}/10-opcache.ini -if [ -f ${ext_dir}/10-opcache.ini.rpmsave ];then - ext_file=${ext_dir}/10-opcache.ini.rpmsave -fi - echo $ext_file if [ "$actionType" == 'install' ];then @@ -53,6 +49,10 @@ if [ "$actionType" == 'install' ];then echo "opcache.save_comments=0" >> $ext_file echo "opcache.blacklist_filename=${OP_BL}" >> $ext_file elif [ "$actionType" == 'uninstall' ];then + if [ -f ${ext_dir}/10-opcache.ini.rpmsave ];then + ext_file=${ext_dir}/10-opcache.ini.rpmsave + fi + # yum remove -y php83-php-opcache yum remove -y php${version}-php-${LIBNAME} rm -rf $ext_file