php-yum优化
This commit is contained in:
parent
73b4be90f5
commit
a8b5df25d0
|
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Reference in New Issue