php-yum优化

This commit is contained in:
midoks 2023-01-09 14:46:08 +08:00
parent 73b4be90f5
commit a8b5df25d0
2 changed files with 4 additions and 2 deletions

View File

@ -51,5 +51,7 @@ fi
echo "yum install -y php${version}-php-${extName}"
echo "yum remove -y php${version}-php-${extName}"
bash ${rootPath}/plugins/php-yum/versions/lib.sh $version restart

View File

@ -11,9 +11,9 @@ serverPath=$(dirname "$rootPath")
version=$1
action=$2
if [ -f /lib/systemd/system/php${version}.service ];then
if [ -f /lib/systemd/system/php${version}-php-fpm.service ];then
systemctl ${action} php${version}
elif [[ -f /usr/lib/systemd/system/php${version}.service ]]; then
elif [[ -f /usr/lib/systemd/system/php${version}-php-fpm.service ]]; then
systemctl ${action} php${version}
else
$serverPath/php/init.d/php${version} ${action}