From e35ab3e4b8bfbf5e82d3a66ed01504ff0cce28da Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 15 Jul 2022 19:21:46 +0800 Subject: [PATCH] Update swoole.sh --- plugins/php/versions/common/swoole.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plugins/php/versions/common/swoole.sh b/plugins/php/versions/common/swoole.sh index 826b27559..84619f695 100755 --- a/plugins/php/versions/common/swoole.sh +++ b/plugins/php/versions/common/swoole.sh @@ -32,8 +32,13 @@ if [ "$version" -eq "82" ];then exit 1 fi -NON_ZTS_FILENAME=`ls $serverPath/php/${version}/lib/php/extensions | grep no-debug-non-zts` -extFile=$serverPath/php/${version}/lib/php/extensions/${NON_ZTS_FILENAME}/${LIBNAME}.so +LIB_PATH_NAME=lib +if [ -f $serverPath/php/${version}/lib64 ];then + LIB_PATH_NAME=lib64 +fi + +NON_ZTS_FILENAME=`ls $serverPath/php/${version}/${LIB_PATH_NAME}/php/extensions | grep no-debug-non-zts` +extFile=$serverPath/php/${version}/${LIB_PATH_NAME}/php/extensions/${NON_ZTS_FILENAME}/${LIBNAME}.so sysName=`uname` if [ "$sysName" == "Darwin" ];then