mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 06:39:25 +08:00
php-yum优化
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user