|
|
@ -3,17 +3,14 @@ PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin |
|
|
|
export PATH |
|
|
|
export PATH |
|
|
|
|
|
|
|
|
|
|
|
curPath=`pwd` |
|
|
|
curPath=`pwd` |
|
|
|
|
|
|
|
|
|
|
|
rootPath=$(dirname "$curPath") |
|
|
|
rootPath=$(dirname "$curPath") |
|
|
|
rootPath=$(dirname "$rootPath") |
|
|
|
rootPath=$(dirname "$rootPath") |
|
|
|
rootPath=$(dirname "$rootPath") |
|
|
|
rootPath=$(dirname "$rootPath") |
|
|
|
rootPath=$(dirname "$rootPath") |
|
|
|
rootPath=$(dirname "$rootPath") |
|
|
|
serverPath=$(dirname "$rootPath") |
|
|
|
serverPath=$(dirname "$rootPath") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
version=$1 |
|
|
|
action=$1 |
|
|
|
action=$2 |
|
|
|
version=$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} |
|
|
|