From 19fcd2702d85bae8e6637616628833fa90eb239d Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 3 Jul 2022 18:21:48 +0800 Subject: [PATCH] Update lib.sh --- plugins/php/versions/lib.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/plugins/php/versions/lib.sh b/plugins/php/versions/lib.sh index 5878fce4c..968a3ead1 100644 --- a/plugins/php/versions/lib.sh +++ b/plugins/php/versions/lib.sh @@ -3,17 +3,14 @@ PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH curPath=`pwd` - rootPath=$(dirname "$curPath") rootPath=$(dirname "$rootPath") rootPath=$(dirname "$rootPath") rootPath=$(dirname "$rootPath") serverPath=$(dirname "$rootPath") - -action=$1 -version=$2 - +version=$1 +action=$2 if [ -f /lib/systemd/system/php${version}.service ];then systemctl ${action} php${version}