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