diff --git a/plugins/php/versions/lib.sh b/plugins/php/versions/lib.sh index 968a3ead1..5702d47ed 100644 --- a/plugins/php/versions/lib.sh +++ b/plugins/php/versions/lib.sh @@ -6,7 +6,6 @@ curPath=`pwd` rootPath=$(dirname "$curPath") rootPath=$(dirname "$rootPath") rootPath=$(dirname "$rootPath") -rootPath=$(dirname "$rootPath") serverPath=$(dirname "$rootPath") version=$1 @@ -14,6 +13,8 @@ action=$2 if [ -f /lib/systemd/system/php${version}.service ];then systemctl ${action} php${version} +elif [[ -f /usr/lib/systemd/system/php${version}.service ]]; then + systemctl ${action} php${version} else $serverPath/php/init.d/php${version} ${action} fi \ No newline at end of file diff --git a/scripts/install/opensuse.sh b/scripts/install/opensuse.sh index 443a067d2..a1a6d17f4 100644 --- a/scripts/install/opensuse.sh +++ b/scripts/install/opensuse.sh @@ -28,6 +28,11 @@ zypper install -y libevent-devel zypper install -y libtirpc-devel zypper install -y rpcgen +zypper install -y libmemcached libmemcached-devel + + +# zypper install -y protobuf +# zypper install -y zlib-devel zypper install -y python3-devel zypper install -y python-devel