Update opcache.sh

pull/602/head
Mr Chen 11 months ago
parent 24b45afe6f
commit d0cdbf48d2
  1. 8
      plugins/php-yum/versions/common/opcache.sh

@ -25,10 +25,6 @@ fi
ext_dir=${cfgDir}/php${version}/php.d ext_dir=${cfgDir}/php${version}/php.d
ext_file=${ext_dir}/10-opcache.ini 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 echo $ext_file
if [ "$actionType" == 'install' ];then if [ "$actionType" == 'install' ];then
@ -53,6 +49,10 @@ if [ "$actionType" == 'install' ];then
echo "opcache.save_comments=0" >> $ext_file echo "opcache.save_comments=0" >> $ext_file
echo "opcache.blacklist_filename=${OP_BL}" >> $ext_file echo "opcache.blacklist_filename=${OP_BL}" >> $ext_file
elif [ "$actionType" == 'uninstall' ];then 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 php83-php-opcache
yum remove -y php${version}-php-${LIBNAME} yum remove -y php${version}-php-${LIBNAME}
rm -rf $ext_file rm -rf $ext_file

Loading…
Cancel
Save