|
|
@ -6,7 +6,6 @@ curPath=`pwd` |
|
|
|
rootPath=$(dirname "$curPath") |
|
|
|
rootPath=$(dirname "$curPath") |
|
|
|
rootPath=$(dirname "$rootPath") |
|
|
|
rootPath=$(dirname "$rootPath") |
|
|
|
rootPath=$(dirname "$rootPath") |
|
|
|
rootPath=$(dirname "$rootPath") |
|
|
|
rootPath=$(dirname "$rootPath") |
|
|
|
|
|
|
|
serverPath=$(dirname "$rootPath") |
|
|
|
serverPath=$(dirname "$rootPath") |
|
|
|
|
|
|
|
|
|
|
|
version=$1 |
|
|
|
version=$1 |
|
|
@ -14,6 +13,8 @@ action=$2 |
|
|
|
|
|
|
|
|
|
|
|
if [ -f /lib/systemd/system/php${version}.service ];then |
|
|
|
if [ -f /lib/systemd/system/php${version}.service ];then |
|
|
|
systemctl ${action} php${version} |
|
|
|
systemctl ${action} php${version} |
|
|
|
|
|
|
|
elif [[ -f /usr/lib/systemd/system/php${version}.service ]]; then |
|
|
|
|
|
|
|
systemctl ${action} php${version} |
|
|
|
else |
|
|
|
else |
|
|
|
$serverPath/php/init.d/php${version} ${action} |
|
|
|
$serverPath/php/init.d/php${version} ${action} |
|
|
|
fi |
|
|
|
fi |