Update lib.sh

pull/118/head
midoks 3 years ago
parent c3988391fb
commit 19fcd2702d
  1. 7
      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}

Loading…
Cancel
Save