Update swoole.sh

This commit is contained in:
midoks 2022-07-15 19:21:46 +08:00
parent a22e658e7e
commit e35ab3e4b8
1 changed files with 7 additions and 2 deletions

View File

@ -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