Update opcache.sh

This commit is contained in:
Mr Chen
2024-06-14 15:33:52 +08:00
parent 5901b1bd33
commit c4ce555f91
+2 -2
View File
@@ -51,8 +51,8 @@ elif [ "$actionType" == 'uninstall' ];then
rm -rf $ext_file
echo 'cannot uninstall'
fi
echo "systemctl restart php${version}-php-fpm"
php_status=`systemctl status php${version}-php-fpm | grep inactive`
if [ "$php_status" != "" ];then
systemctl ${action} php${version}-php-fpm
systemctl restart php${version}-php-fpm
fi