This commit is contained in:
2026-09-11 22:39:42 +08:00
parent e60570e380
commit a61644861b
57 changed files with 130 additions and 130 deletions

View File

@@ -67,11 +67,11 @@ cd ${MG_DIR} && rm -rf ${MG_DIR}/${TOOL_FILE_NAME}
#--------------- mongodb database install ------------------ #
TOOL_VERSION=100.9.4
TOOL_FILE_NAME=mongodb-database-tools-debian${SYS_NAME}-x86_64-${TOOL_VERSION}
if [ "aarch64" == ${SYS_ARCH} ];then
if [ "aarch64" = ${SYS_ARCH} ];then
TOOL_FILE_NAME=mongodb-database-tools-debian${SYS_NAME}-arm64-${TOOL_VERSION}
fi
if [ "arm64" == ${SYS_ARCH} ];then
if [ "arm64" = ${SYS_ARCH} ];then
TOOL_FILE_NAME=mongodb-database-tools-debian${SYS_NAME}-arm64-${TOOL_VERSION}
fi

View File

@@ -19,7 +19,7 @@ if [ "$SYS_NAME_LEN" = "1" ];then
SYS_NAME=${SYS_NAME}0
fi
if [ "$SYS_ARCH" == "aarch64" ];then
if [ "$SYS_ARCH" = "aarch64" ];then
if [ "$SYS_NAME" -gt "90" ];then
SYS_NAME="90"
fi

View File

@@ -53,7 +53,7 @@ cd ${MG_DIR} && rm -rf ${MG_DIR}/${FILE_NAME}
#--------------- mongosh tool install ------------------ #
TOOL_VERSION=2.2.5
TOOL_FILE_NAME=mongosh-${TOOL_VERSION}-linux-x64
if [ "aarch64" == ${SYS_ARCH} ];then
if [ "aarch64" = ${SYS_ARCH} ];then
TOOL_FILE_NAME=mongosh-${TOOL_VERSION}-linux-arm64
fi
TOOL_FILE_NAME_TGZ=${TOOL_FILE_NAME}.tgz
@@ -77,7 +77,7 @@ if [ "aarch64" = ${SYS_ARCH} ];then
TOOL_FILE_NAME=mongodb-database-tools-debian${SYS_NAME}-arm64-${TOOL_VERSION}
fi
if [ "arm64" == ${SYS_ARCH} ];then
if [ "arm64" = ${SYS_ARCH} ];then
TOOL_FILE_NAME=mongodb-database-tools-debian${SYS_NAME}-arm64-${TOOL_VERSION}
fi

View File

@@ -51,7 +51,7 @@ cd ${MG_DIR} && rm -rf ${MG_DIR}/${FILE_NAME}
#--------------- mongosh tool install ------------------ #
TOOL_VERSION=2.2.5
TOOL_FILE_NAME=mongosh-${TOOL_VERSION}-linux-x64
if [ "aarch64" == ${SYS_ARCH} ];then
if [ "aarch64" = ${SYS_ARCH} ];then
TOOL_FILE_NAME=mongosh-${TOOL_VERSION}-linux-arm64
fi
TOOL_FILE_NAME_TGZ=${TOOL_FILE_NAME}.tgz
@@ -72,11 +72,11 @@ cd ${MG_DIR} && rm -rf ${MG_DIR}/${TOOL_FILE_NAME}
#--------------- mongodb database install ------------------ #
TOOL_VERSION=100.9.4
TOOL_FILE_NAME=mongodb-database-tools-suse${SYS_NAME}-x86_64-${TOOL_VERSION}
if [ "aarch64" == ${SYS_ARCH} ];then
if [ "aarch64" = ${SYS_ARCH} ];then
TOOL_FILE_NAME=mongodb-database-tools-suse${SYS_NAME}-arm64-${TOOL_VERSION}
fi
if [ "arm64" == ${SYS_ARCH} ];then
if [ "arm64" = ${SYS_ARCH} ];then
TOOL_FILE_NAME=mongodb-database-tools-suse${SYS_NAME}-arm64-${TOOL_VERSION}
fi

View File

@@ -72,11 +72,11 @@ cd ${MG_DIR} && rm -rf ${MG_DIR}/${TOOL_FILE_NAME}
#--------------- mongodb database install ------------------ #
TOOL_VERSION=100.9.4
TOOL_FILE_NAME=mongodb-database-tools-suse${SYS_NAME}-x86_64-${TOOL_VERSION}
if [ "aarch64" == ${SYS_ARCH} ];then
if [ "aarch64" = ${SYS_ARCH} ];then
TOOL_FILE_NAME=mongodb-database-tools-suse${SYS_NAME}-arm64-${TOOL_VERSION}
fi
if [ "arm64" == ${SYS_ARCH} ];then
if [ "arm64" = ${SYS_ARCH} ];then
TOOL_FILE_NAME=mongodb-database-tools-suse${SYS_NAME}-arm64-${TOOL_VERSION}
fi

View File

@@ -57,7 +57,7 @@ cd ${MG_DIR} && rm -rf ${MG_DIR}/${FILE_NAME}
#--------------- mongosh tool install ------------------ #
TOOL_VERSION=2.2.5
TOOL_FILE_NAME=mongosh-${TOOL_VERSION}-linux-x64
if [ "aarch64" == ${SYS_ARCH} ];then
if [ "aarch64" = ${SYS_ARCH} ];then
TOOL_FILE_NAME=mongosh-${TOOL_VERSION}-linux-arm64
fi
TOOL_FILE_NAME_TGZ=${TOOL_FILE_NAME}.tgz

View File

@@ -55,7 +55,7 @@ Install_mysql()
{
echo '正在安装脚本文件...'
COMMUNITY_INSTALL
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
mkdir -p $serverPath/mysql-community
echo '9.0' > $serverPath/mysql-community/version.pl
echo '安装完成'

View File

@@ -58,7 +58,7 @@ Install_mysql()
{
echo '正在安装脚本文件...'
COMMUNITY_INSTALL
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
mkdir -p $serverPath/mysql-community
echo '9.3' > $serverPath/mysql-community/version.pl
echo '安装完成'

View File

@@ -104,7 +104,7 @@ Install_mysql()
md5_mysql_ok=8c2399782217f5391322751c66ea261b
if [ -f ${mysqlDir}/mysql-boost-${VERSION}.tar.gz ];then
md5_mysql=`md5sum ${mysqlDir}/mysql-boost-${VERSION}.tar.gz | awk '{print $1}'`
if [ "${md5_mysql_ok}" == "${md5_mysql}" ]; then
if [ "${md5_mysql_ok}" = "${md5_mysql}" ]; then
echo "mysql8.3 file check ok"
else
# 重新下载

View File

@@ -107,7 +107,7 @@ Install_mysql()
md5_mysql_ok=c770f276fb84019be6fbe0a57b32efbc
if [ -f ${mysqlDir}/mysql-${VERSION}.tar.gz ];then
md5_mysql=`md5sum ${mysqlDir}/mysql-${VERSION}.tar.gz | awk '{print $1}'`
if [ "${md5_mysql_ok}" == "${md5_mysql}" ]; then
if [ "${md5_mysql_ok}" = "${md5_mysql}" ]; then
echo "mysql9.4 file check ok"
else
# 重新下载

View File

@@ -144,7 +144,7 @@ Install_mysql()
echo $WHERE_DIR_GPP
fi
if [ "$OSNAME" == "ubuntu" ];then
if [ "$OSNAME" = "ubuntu" ];then
apt install -y libudev-dev
apt install -y libtirpc-dev
apt install -y libssl-dev
@@ -170,7 +170,7 @@ Install_mysql()
fi
if [ "$OSNAME" == "opensuse" ];then
if [ "$OSNAME" = "opensuse" ];then
zypper install -y gcc11
zypper install -y gcc11-c++

View File

@@ -32,7 +32,7 @@ fi
sh -x $curPath/versions/$2/install.sh $1
if [ "${action}" == "uninstall" ];then
if [ "${action}" = "uninstall" ];then
if [ -f /usr/lib/systemd/system/nezha.service ] || [ -f /lib/systemd/system/nezha.service ] ;then
systemctl stop nezha
systemctl disable nezha

View File

@@ -65,10 +65,10 @@ Install_App(){
export PATH=$PATH:$serverPath/op_waf/luarocks/bin
if [ ! -f $serverPath/op_waf/waf/conf/lsqlite3.so ];then
if [ "${sys_os}" == "Darwin" ];then
if [ "${sys_os}" = "Darwin" ];then
cd $serverPath/source/op_waf/lsqlite3_fsl09y
find_cfg=`cat Makefile | grep 'SQLITE_DIR'`
if [ "$find_cfg" == "" ];then
if [ "$find_cfg" = "" ];then
LIB_SQLITE_DIR=`brew info sqlite | grep /usr/local/Cellar/sqlite | cut -d \ -f 1 | awk 'END {print}'`
echo $LIB_SQLITE_DIR
sed -i $BAK "s#\$(ROCKSPEC)#\$(ROCKSPEC) SQLITE_DIR=${LIB_SQLITE_DIR}#g" Makefile
@@ -127,7 +127,7 @@ Install_App(){
Uninstall_App(){
cd ${rootPath} && python3 ${rootPath}/plugins/op_waf/index.py stop
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
rm -rf $serverPath/op_waf
fi
}

View File

@@ -71,10 +71,10 @@ Install_App(){
export PATH=$PATH:$serverPath/op_waf/luarocks/bin
if [ ! -f $serverPath/op_waf/waf/conf/lsqlite3.so ];then
if [ "${sys_os}" == "Darwin" ];then
if [ "${sys_os}" = "Darwin" ];then
cd $serverPath/source/op_waf/lsqlite3_v096
find_cfg=`cat Makefile | grep 'SQLITE_DIR'`
if [ "$find_cfg" == "" ];then
if [ "$find_cfg" = "" ];then
LIB_SQLITE_DIR=`brew info sqlite | grep /opt/homebrew/Cellar/sqlite | cut -d \ -f 1 | awk 'END {print}'`
echo $LIB_SQLITE_DIR
sed -i $BAK "s#\$(ROCKSPEC)#\$(ROCKSPEC) SQLITE_DIR=${LIB_SQLITE_DIR}#g" Makefile
@@ -141,7 +141,7 @@ Install_App(){
Uninstall_App(){
cd ${rootPath} && python3 ${rootPath}/plugins/op_waf/index.py stop
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
rm -rf $serverPath/op_waf
fi
}

View File

@@ -106,11 +106,11 @@ fi
for pid in ${pids[@]}; do
echo "strace:$pid"
if [ $1 == "lua" ]; then
if [ $1 = "lua" ]; then
# --without-luajit-gc64 | lua 模式编译时需要使用此参数
/opt/openresty-systemtap-toolkit/ngx-sample-lua-bt -p $pid --luajit20 -t 30 >temp.bt
/opt/openresty-systemtap-toolkit/fix-lua-bt temp.bt >${name}_${pid}.bt
elif [ $1 == "c" ]; then
elif [ $1 = "c" ]; then
/opt/openresty-systemtap-toolkit/sample-bt -p $pid -t 10 -u > ${name}_${pid}.bt
else
echo "type is only lua/c"

View File

@@ -19,7 +19,7 @@ openrestyDir=${serverPath}/source/openresty
Install_openresty()
{
if [ "${action}" == "install" ];then
if [ "${action}" = "install" ];then
if [ -d $serverPath/openresty ];then
exit 0
fi
@@ -144,13 +144,13 @@ Install_openresty()
cd ${openrestyDir} && wget -O $openrestyDir/zstd-nginx-module.tar.gz https://github.com/tokers/zstd-nginx-module/archive/refs/heads/master.tar.gz
cd ${openrestyDir} && tar -zxvf zstd-nginx-module.tar.gz
if [ "$sysName" == "Darwin" ];then
if [ "$sysName" = "Darwin" ];then
export ZSTD_INC=/opt/homebrew/include
export ZSTD_LIB=/opt/homebrew/lib
fi
pkg-config --exists --print-errors libzstd
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
OPTIONS="${OPTIONS} --add-module=${openrestyDir}/zstd-nginx-module-master"
fi
fi
@@ -171,7 +171,7 @@ Install_openresty()
# 用于调式
CMD_MAKE=`which gmake`
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
gmake -j${cpuCore} && gmake install && gmake clean
else
make -j${cpuCore} && make install && make clean

View File

@@ -173,7 +173,7 @@ Install_openresty()
# 用于调式
CMD_MAKE=`which gmake`
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
gmake -j${cpuCore} && gmake install && gmake clean
else
make -j${cpuCore} && make install && make clean

View File

@@ -150,7 +150,7 @@ Install_openresty()
fi
pkg-config --exists --print-errors libzstd
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
OPTIONS="${OPTIONS} --add-module=${openrestyDir}/zstd-nginx-module-master"
fi
fi

View File

@@ -60,7 +60,7 @@ Install_openresty()
fi
DOWNLOAD_SIZE=`wc -c ${openrestyDir}/openresty-${VERSION}.tar.gz | awk '{print $1}'`
if [ "$DOWNLOAD_SIZE" == "0" ];then
if [ "$DOWNLOAD_SIZE" = "0" ];then
echo 'download failed, download again'
rm -rf ${openrestyDir}/openresty-${VERSION}.tar.gz
fi

View File

@@ -58,7 +58,7 @@ Install_openresty()
fi
DOWNLOAD_SIZE=`wc -c ${openrestyDir}/openresty-${VERSION}.tar.gz | awk '{print $1}'`
if [ "$DOWNLOAD_SIZE" == "0" ];then
if [ "$DOWNLOAD_SIZE" = "0" ];then
echo 'download failed, download again'
rm -rf ${openrestyDir}/openresty-${VERSION}.tar.gz
fi

View File

@@ -18,7 +18,7 @@ SOURCE_ROOT=$rootPath/source/lib
# LOCAL_ADDR=common
# cn=$(curl -fsSL -m 10 http://ipinfo.io/json | grep "\"country\": \"CN\"")
# if [ ! -z "$cn" ] || [ "$?" == "0" ] ;then
# if [ ! -z "$cn" ] || [ "$?" = "0" ] ;then
# LOCAL_ADDR=cn
# fi

View File

@@ -18,7 +18,7 @@ SOURCE_ROOT=$rootPath/source/lib
HTTP_PREFIX="https://"
LOCAL_ADDR=common
cn=$(curl -fsSL -m 10 http://ipinfo.io/json | grep "\"country\": \"CN\"")
if [ ! -z "$cn" ] || [ "$?" == "0" ] ;then
if [ ! -z "$cn" ] || [ "$?" = "0" ] ;then
LOCAL_ADDR=cn
HTTP_PREFIX="https://mirror.ghproxy.com/"
fi

View File

@@ -15,7 +15,7 @@ SOURCE_ROOT=$rootPath/source/lib
HTTP_PREFIX="https://"
cn=$(curl -fsSL -m 10 http://ipinfo.io/json | grep "\"country\": \"CN\"")
if [ ! -z "$cn" ] || [ "$?" == "0" ] ;then
if [ ! -z "$cn" ] || [ "$?" = "0" ] ;then
HTTP_PREFIX="https://mirror.ghproxy.com/"
fi

View File

@@ -20,7 +20,7 @@ version=$2
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
if [ "$sysName" == "Darwin" ];then
if [ "$sysName" = "Darwin" ];then
BAK='_bak'
else
BAK=''
@@ -48,7 +48,7 @@ Install_lib()
cd $php_lib/${LIBNAME}-${LIBV}
OPTIONS=''
if [ "${SYS_ARCH}" == "aarch64" ];then
if [ "${SYS_ARCH}" = "aarch64" ];then
OPTIONS="$OPTIONS --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu"
fi

View File

@@ -33,7 +33,7 @@ if [ ! -d $sourcePath/php/php${PHP_VER} ];then
LOCAL_ADDR=cn
fi
if [ "$LOCAL_ADDR" == "cn" ];then
if [ "$LOCAL_ADDR" = "cn" ];then
if [ ! -f $sourcePath/php/php-${version}.tar.xz ];then
wget --no-check-certificate -O $sourcePath/php/php-${version}.tar.xz https://mirrors.nju.edu.cn/php/php-${version}.tar.xz
fi

View File

@@ -20,7 +20,7 @@ version=$2
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
if [ "$sysName" == "Darwin" ];then
if [ "$sysName" = "Darwin" ];then
BAK='_bak'
else
BAK=''

View File

@@ -33,7 +33,7 @@ if [ ! -d $sourcePath/php/php${PHP_VER} ];then
LOCAL_ADDR=cn
fi
if [ "$LOCAL_ADDR" == "cn" ];then
if [ "$LOCAL_ADDR" = "cn" ];then
if [ ! -f $sourcePath/php/php-${version}.tar.xz ];then
wget --no-check-certificate -O $sourcePath/php/php-${version}.tar.xz https://mirrors.nju.edu.cn/php/php-${version}.tar.xz
fi
@@ -94,13 +94,13 @@ else
fi
# ----- cpu end ------
if [ "${SYS_ARCH}" == "aarch64" ];then
if [ "${SYS_ARCH}" = "aarch64" ];then
# 修复aarch64架构下安装
# /www/server/mdserver-web/plugins/php/versions/56/src/zend_multiply.h > /www/server/source/php/php56/Zend/zend_multiply.h
cat ${curPath}/versions/${PHP_VER}/src/zend_multiply.h > $sourcePath/php/php${PHP_VER}/Zend/zend_multiply.h
fi
if [ "${SYS_ARCH}" == "arm64" ] && [ "$sysName" == "Darwin" ] ;then
if [ "${SYS_ARCH}" = "arm64" ] && [ "$sysName" = "Darwin" ] ;then
# 修复mac arm64架构下php安装
# 修复不能识别到sys_icache_invalidate
cat ${curPath}/versions/${PHP_VER}/src/ext/pcre/sljitConfigInternal.h > $sourcePath/php/php${PHP_VER}/ext/pcre/pcrelib/sljit/sljitConfigInternal.h

View File

@@ -60,7 +60,7 @@ if [ ! -d $sourcePath/php/php${PHP_VER} ];then
fi
OPTIONS='--without-iconv'
if [ $sysName == 'Darwin' ]; then
if [ $sysName = 'Darwin' ]; then
OPTIONS="${OPTIONS} --with-freetype-dir=${serverPath}/lib/freetype"
OPTIONS="${OPTIONS} --with-zlib-dir=$(brew --prefix zlib)"
else
@@ -68,7 +68,7 @@ else
fi
IS_64BIT=`getconf LONG_BIT`
if [ "$IS_64BIT" == "64" ];then
if [ "$IS_64BIT" = "64" ];then
OPTIONS="${OPTIONS} --with-libdir=lib64"
fi

View File

@@ -39,7 +39,7 @@ Install_lib()
php_lib=$sourcePath/php_lib
mkdir -p $php_lib
if [ $sysName == 'Darwin' ]; then
if [ $sysName = 'Darwin' ]; then
wget -O $php_lib/zend-loader-php5.6.tar.gz http://downloads.zend.com/guard/7.0.0/zend-loader-php5.6-darwin10.7-x86_64_update1.tar.gz
else
wget -O $php_lib/zend-loader-php5.6.tar.gz http://downloads.zend.com/guard/7.0.0/zend-loader-php5.6-linux-x86_64_update1.tar.gz

View File

@@ -29,11 +29,11 @@ if [ ! -d $sourcePath/php/php${PHP_VER} ];then
# 中国优化安装
cn=$(curl -fsSL -m 10 -s http://ipinfo.io/json | grep "\"country\": \"CN\"")
LOCAL_ADDR=common
if [ ! -z "$cn" ] || [ "$?" == "0" ] ;then
if [ ! -z "$cn" ] || [ "$?" = "0" ] ;then
LOCAL_ADDR=cn
fi
if [ "$LOCAL_ADDR" == "cn" ];then
if [ "$LOCAL_ADDR" = "cn" ];then
if [ ! -f $sourcePath/php/php-${version}.tar.xz ];then
wget --no-check-certificate -O $sourcePath/php/php-${version}.tar.xz https://mirrors.nju.edu.cn/php/php-${version}.tar.xz
fi
@@ -58,7 +58,7 @@ if [ ! -d $sourcePath/php/php${PHP_VER} ];then
fi
OPTIONS='--without-iconv'
if [ $sysName == 'Darwin' ]; then
if [ $sysName = 'Darwin' ]; then
OPTIONS="${OPTIONS} --with-freetype-dir=${serverPath}/lib/freetype"
# OPTIONS="${OPTIONS} --with-external-pcre=$(brew --prefix pcre2)"
else
@@ -95,7 +95,7 @@ else
fi
# ----- cpu end ------
if [ "${SYS_ARCH}" == "arm64" ] && [ "$sysName" == "Darwin" ] ;then
if [ "${SYS_ARCH}" = "arm64" ] && [ "$sysName" = "Darwin" ] ;then
# 修复mac arm64架构下php安装
# 修复不能识别到sys_icache_invalidate
cat ${curPath}/versions/${PHP_VER}/src/ext/pcre/sljitConfigInternal.h > $sourcePath/php/php${PHP_VER}/ext/pcre/pcrelib/sljit/sljitConfigInternal.h
@@ -103,7 +103,7 @@ if [ "${SYS_ARCH}" == "arm64" ] && [ "$sysName" == "Darwin" ] ;then
cat ${curPath}/versions/${PHP_VER}/src/mkstemp.c > $sourcePath/php/php${PHP_VER}/ext/zip/lib/mkstemp.c
fi
if [ "$sysName" == "Darwin" ];then
if [ "$sysName" = "Darwin" ];then
BREW_DIR=`which brew`
BREW_DIR=${BREW_DIR/\/bin\/brew/}

View File

@@ -30,11 +30,11 @@ if [ ! -d $sourcePath/php/php${PHP_VER} ];then
# 中国优化安装
cn=$(curl -fsSL -m 10 -s http://ipinfo.io/json | grep "\"country\": \"CN\"")
LOCAL_ADDR=common
if [ ! -z "$cn" ] || [ "$?" == "0" ] ;then
if [ ! -z "$cn" ] || [ "$?" = "0" ] ;then
LOCAL_ADDR=cn
fi
if [ "$LOCAL_ADDR" == "cn" ];then
if [ "$LOCAL_ADDR" = "cn" ];then
if [ ! -f $sourcePath/php/php-${version}.tar.xz ];then
wget --no-check-certificate -O $sourcePath/php/php-${version}.tar.xz https://mirrors.nju.edu.cn/php/php-${version}.tar.xz
fi
@@ -68,7 +68,7 @@ else
fi
IS_64BIT=`getconf LONG_BIT`
if [ "$IS_64BIT" == "64" ];then
if [ "$IS_64BIT" = "64" ];then
OPTIONS="${OPTIONS} --with-libdir=lib64"
fi

View File

@@ -69,11 +69,11 @@ if [ ! -d $sourcePath/php/php${PHP_VER} ];then
# 中国优化安装
cn=$(curl -fsSL -m 10 -s http://ipinfo.io/json | grep "\"country\": \"CN\"")
LOCAL_ADDR=common
if [ ! -z "$cn" ] || [ "$?" == "0" ] ;then
if [ ! -z "$cn" ] || [ "$?" = "0" ] ;then
LOCAL_ADDR=cn
fi
if [ "$LOCAL_ADDR" == "cn" ];then
if [ "$LOCAL_ADDR" = "cn" ];then
if [ ! -f $sourcePath/php/php-${version}.tar.xz ];then
wget --no-check-certificate -O $sourcePath/php/php-${version}.tar.xz https://mirrors.nju.edu.cn/php/php-${version}.tar.xz
fi
@@ -98,14 +98,14 @@ if [ ! -d $sourcePath/php/php${PHP_VER} ];then
fi
OPTIONS='--without-iconv'
if [ $sysName == 'Darwin' ]; then
if [ $sysName = 'Darwin' ]; then
OPTIONS="${OPTIONS} --with-curl=$(brew --prefix curl)"
OPTIONS="${OPTIONS} --with-pcre-dir=$(brew --prefix pcre2)"
else
OPTIONS="${OPTIONS} --with-readline"
fi
IS_64BIT=`getconf LONG_BIT`
if [ "$IS_64BIT" == "64" ];then
if [ "$IS_64BIT" = "64" ];then
OPTIONS="${OPTIONS} --with-libdir=lib64"
fi
@@ -140,16 +140,16 @@ RELOAD_CODE(){
echo "cat ${curPath}/versions/${PHP_VER}/src/reentrancy.c > $sourcePath/php/php${PHP_VER}/main/reentrancy.c"
}
if [ "${SYS_ARCH}" == "arm64" ];then
if [ "${SYS_ARCH}" = "arm64" ];then
# 修复arm64架构下安装
RELOAD_CODE
fi
if [ "${OSNAME}" == "debian" ] && [ "${VERSION_ID}" == "13" ];then
if [ "${OSNAME}" = "debian" ] && [ "${VERSION_ID}" = "13" ];then
RELOAD_CODE
fi
if [ "$sysName" == "Darwin" ];then
if [ "$sysName" = "Darwin" ];then
BREW_DIR=`which brew`
BREW_DIR=${BREW_DIR/\/bin\/brew/}

View File

@@ -11,7 +11,7 @@ sysName=`uname`
SYS_ARCH=`arch`
echo "use system: ${sysName}"
if [ ${sysName} == "Darwin" ]; then
if [ ${sysName} = "Darwin" ]; then
OSNAME='macos'
elif grep -Eq "openSUSE" /etc/*-release; then
OSNAME='opensuse'
@@ -72,7 +72,7 @@ if [ ! -d $sourcePath/php/php${PHP_VER} ];then
LOCAL_ADDR=cn
fi
if [ "$LOCAL_ADDR" == "cn" ];then
if [ "$LOCAL_ADDR" = "cn" ];then
if [ ! -f $sourcePath/php/php-${version}.tar.xz ];then
wget --no-check-certificate -O $sourcePath/php/php-${version}.tar.xz https://mirrors.nju.edu.cn/php/php-${version}.tar.xz
fi
@@ -105,7 +105,7 @@ fi
# fi
OPTIONS='--without-iconv'
if [ $sysName == 'Darwin' ]; then
if [ $sysName = 'Darwin' ]; then
OPTIONS="${OPTIONS} --with-curl=$(brew --prefix curl)"
OPTIONS="${OPTIONS} --with-pcre-dir=$(brew --prefix pcre2)"
else
@@ -113,7 +113,7 @@ else
fi
IS_64BIT=`getconf LONG_BIT`
if [ "$IS_64BIT" == "64" ];then
if [ "$IS_64BIT" = "64" ];then
OPTIONS="${OPTIONS} --with-libdir=lib64"
fi

View File

@@ -108,7 +108,7 @@ else
fi
# ----- cpu end ------
if [ "$sysName" == "Darwin" ];then
if [ "$sysName" = "Darwin" ];then
BREW_DIR=`which brew`
BREW_DIR=${BREW_DIR/\/bin\/brew/}

View File

@@ -24,7 +24,7 @@ cd ${rootPath}/plugins/php/lib && /bin/bash zlib.sh
# redat ge 8
which yum
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
cd ${rootPath}/plugins/php/lib && /bin/bash oniguruma.sh
fi
@@ -34,11 +34,11 @@ if [ ! -d $sourcePath/php/php${PHP_VER} ];then
# 中国优化安装
cn=$(curl -fsSL -m 10 -s http://ipinfo.io/json | grep "\"country\": \"CN\"")
LOCAL_ADDR=common
if [ ! -z "$cn" ] || [ "$?" == "0" ] ;then
if [ ! -z "$cn" ] || [ "$?" = "0" ] ;then
LOCAL_ADDR=cn
fi
if [ "$LOCAL_ADDR" == "cn" ];then
if [ "$LOCAL_ADDR" = "cn" ];then
if [ ! -f $sourcePath/php/php-${version}.tar.xz ];then
wget --no-check-certificate -O $sourcePath/php/php-${version}.tar.xz https://mirrors.nju.edu.cn/php/php-${version}.tar.xz
fi
@@ -66,18 +66,18 @@ cd $sourcePath/php/php${PHP_VER}
OPTIONS='--without-iconv'
if [ $sysName == 'Darwin' ]; then
if [ $sysName = 'Darwin' ]; then
OPTIONS="${OPTIONS} --with-external-pcre=$(brew --prefix pcre2)"
fi
IS_64BIT=`getconf LONG_BIT`
if [ "$IS_64BIT" == "64" ];then
if [ "$IS_64BIT" = "64" ];then
OPTIONS="${OPTIONS} --with-libdir=lib64"
fi
# argon_version=`pkg-config libargon2 --modversion`
# if [ "$?" == "0" ];then
# if [ "$?" = "0" ];then
# OPTIONS="${OPTIONS} --with-password-argon2"
# fi
@@ -108,7 +108,7 @@ fi
# echo "$sourcePath/php/php${PHP_VER}"
if [ "$sysName" == "Darwin" ];then
if [ "$sysName" = "Darwin" ];then
BREW_DIR=`which brew`
BREW_DIR=${BREW_DIR/\/bin\/brew/}

View File

@@ -24,7 +24,7 @@ cd ${rootPath}/plugins/php/lib && /bin/bash zlib.sh
# redat ge 8
which yum
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
cd ${rootPath}/plugins/php/lib && /bin/bash oniguruma.sh
fi
@@ -34,11 +34,11 @@ if [ ! -d $sourcePath/php/php${PHP_VER} ];then
# 中国优化安装
cn=$(curl -fsSL -m 10 -s http://ipinfo.io/json | grep "\"country\": \"CN\"")
LOCAL_ADDR=common
if [ ! -z "$cn" ] || [ "$?" == "0" ] ;then
if [ ! -z "$cn" ] || [ "$?" = "0" ] ;then
LOCAL_ADDR=cn
fi
if [ "$LOCAL_ADDR" == "cn" ];then
if [ "$LOCAL_ADDR" = "cn" ];then
if [ ! -f $sourcePath/php/php-${version}.tar.xz ];then
wget --no-check-certificate -O $sourcePath/php/php-${version}.tar.xz https://mirrors.nju.edu.cn/php/php-${version}.tar.xz
fi
@@ -101,7 +101,7 @@ fi
echo "$sourcePath/php/php${PHP_VER}"
if [ "$sysName" == "Darwin" ];then
if [ "$sysName" = "Darwin" ];then
BREW_DIR=`which brew`
BREW_DIR=${BREW_DIR/\/bin\/brew/}

View File

@@ -34,7 +34,7 @@ if [ ! -d $sourcePath/php/php${PHP_VER} ];then
# 中国优化安装
cn=$(curl -fsSL -m 10 -s http://ipinfo.io/json | grep "\"country\": \"CN\"")
LOCAL_ADDR=common
if [ ! -z "$cn" ] || [ "$?" == "0" ] ;then
if [ ! -z "$cn" ] || [ "$?" = "0" ] ;then
LOCAL_ADDR=cn
fi
@@ -67,12 +67,12 @@ cd $sourcePath/php/php${PHP_VER}
OPTIONS='--without-iconv'
IS_64BIT=`getconf LONG_BIT`
if [ "$IS_64BIT" == "64" ];then
if [ "$IS_64BIT" = "64" ];then
OPTIONS="${OPTIONS} --with-libdir=lib64"
fi
argon_version=`pkg-config libargon2 --modversion`
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
OPTIONS="${OPTIONS} --with-password-argon2"
fi

View File

@@ -24,7 +24,7 @@ cd ${rootPath}/plugins/php/lib && /bin/bash zlib.sh
# redat ge 8
which yum
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
cd ${rootPath}/plugins/php/lib && /bin/bash oniguruma.sh
fi
@@ -38,7 +38,7 @@ if [ ! -d $sourcePath/php/php${PHP_VER} ];then
LOCAL_ADDR=cn
fi
if [ "$LOCAL_ADDR" == "cn" ];then
if [ "$LOCAL_ADDR" = "cn" ];then
if [ ! -f $sourcePath/php/php-${version}.tar.xz ];then
wget --no-check-certificate -O $sourcePath/php/php-${version}.tar.xz https://mirrors.nju.edu.cn/php/php-${version}.tar.xz
fi
@@ -68,12 +68,12 @@ cd $sourcePath/php/php${PHP_VER}
OPTIONS='--without-iconv'
argon_version=`pkg-config libargon2 --modversion`
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
OPTIONS="${OPTIONS} --with-password-argon2"
fi
IS_64BIT=`getconf LONG_BIT`
if [ "$IS_64BIT" == "64" ];then
if [ "$IS_64BIT" = "64" ];then
OPTIONS="${OPTIONS} --with-libdir=lib64"
fi
@@ -102,7 +102,7 @@ else
fi
# ----- cpu end ------
if [ "$sysName" == "Darwin" ];then
if [ "$sysName" = "Darwin" ];then
BREW_DIR=`which brew`
BREW_DIR=${BREW_DIR/\/bin\/brew/}

View File

@@ -67,17 +67,17 @@ cd $sourcePath/php/php${PHP_VER}
OPTIONS='--without-iconv'
# if [ $sysName == 'Darwin' ]; then
# if [ $sysName = 'Darwin' ]; then
# OPTIONS="${OPTIONS} --with-curl"
# fi
argon_version=`pkg-config libargon2 --modversion`
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
OPTIONS="${OPTIONS} --with-password-argon2"
fi
IS_64BIT=`getconf LONG_BIT`
if [ "$IS_64BIT" == "64" ];then
if [ "$IS_64BIT" = "64" ];then
OPTIONS="${OPTIONS} --with-libdir=lib64"
fi

View File

@@ -24,7 +24,7 @@ cd ${rootPath}/plugins/php/lib && /bin/bash zlib.sh
# redat ge 8
which yum
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
cd ${rootPath}/plugins/php/lib && /bin/bash oniguruma.sh
fi
@@ -38,7 +38,7 @@ if [ ! -d $sourcePath/php/php${PHP_VER} ];then
LOCAL_ADDR=cn
fi
if [ "$LOCAL_ADDR" == "cn" ];then
if [ "$LOCAL_ADDR" = "cn" ];then
if [ ! -f $sourcePath/php/php-${version}.tar.xz ];then
wget --no-check-certificate -O $sourcePath/php/php-${version}.tar.xz https://mirrors.nju.edu.cn/php/php-${version}.tar.xz
fi
@@ -68,17 +68,17 @@ cd $sourcePath/php/php${PHP_VER}
OPTIONS='--without-iconv'
# if [ $sysName == 'Darwin' ]; then
# if [ $sysName = 'Darwin' ]; then
# OPTIONS="${OPTIONS} --with-curl"
# fi
argon_version=`pkg-config libargon2 --modversion`
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
OPTIONS="${OPTIONS} --with-password-argon2"
fi
IS_64BIT=`getconf LONG_BIT`
if [ "$IS_64BIT" == "64" ];then
if [ "$IS_64BIT" = "64" ];then
OPTIONS="${OPTIONS} --with-libdir=lib64"
fi

View File

@@ -30,7 +30,7 @@ fi
NON_ZTS_FILENAME=`ls $serverPath/php/${version}/${LIB_PATH_NAME}/extensions | grep no-debug-non-zts`
extFile=$serverPath/php/${version}/${LIB_PATH_NAME}/extensions/${NON_ZTS_FILENAME}/${LIBNAME}.so
if [ "$sysName" == "Darwin" ];then
if [ "$sysName" = "Darwin" ];then
BAK='_bak'
else
BAK=''
@@ -57,7 +57,7 @@ Install_lib()
cd $php_lib/${LIBNAME}-${LIBV}
OPTIONS=''
if [ "${SYS_ARCH}" == "aarch64" ] && [ "$version" -lt "56" ];then
if [ "${SYS_ARCH}" = "aarch64" ] && [ "$version" -lt "56" ];then
OPTIONS="$OPTIONS --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu"
fi
@@ -107,8 +107,8 @@ Uninstall_lib()
}
if [ "$actionType" == 'install' ];then
if [ "$actionType" = 'install' ];then
Install_lib
elif [ "$actionType" == 'uninstall' ];then
elif [ "$actionType" = 'uninstall' ];then
Uninstall_lib
fi

View File

@@ -28,7 +28,7 @@ NON_ZTS_FILENAME=`ls $serverPath/php/${version}/${LIB_PATH_NAME}/extensions | gr
extFile=$serverPath/php/${version}/${LIB_PATH_NAME}/extensions/${NON_ZTS_FILENAME}/${LIBNAME}.so
sysName=`uname`
if [ "$sysName" == "Darwin" ];then
if [ "$sysName" = "Darwin" ];then
BAK='_bak'
else
BAK=''

View File

@@ -64,7 +64,7 @@ Install_lib()
cd $php_lib/${LIBNAME}-${LIBV}
OPTIONS=''
if [ "${SYS_ARCH}" == "aarch64" ] && [ "$version" -lt "56" ];then
if [ "${SYS_ARCH}" = "aarch64" ] && [ "$version" -lt "56" ];then
OPTIONS="$OPTIONS --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu"
fi

View File

@@ -58,7 +58,7 @@ Install_lib()
cd $sourcePath/php${version}/ext/${LIBNAME}
OPTIONS=''
if [ "${SYS_ARCH}" == "aarch64" ] && [ "$version" -lt "56" ];then
if [ "${SYS_ARCH}" = "aarch64" ] && [ "$version" -lt "56" ];then
OPTIONS="$OPTIONS --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu"
fi
@@ -66,7 +66,7 @@ Install_lib()
./configure --with-php-config=$serverPath/php/$version/bin/php-config $OPTIONS
FIND_C99=`cat Makefile|grep c99`
if [ "$FIND_C99" == "" ];then
if [ "$FIND_C99" = "" ];then
sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=c99/g' Makefile
fi

View File

@@ -72,18 +72,18 @@ Install_lib()
if [ "$OSNAME" = 'centos' ];then
FILE_softmagic=$sourcePath/php${version}/ext/${LIBNAME}/libmagic/softmagic.c
FIND_UNDEF_STRNDUP=`cat $FILE_softmagic|grep '#undef strndup'`
if [ "$version" -gt "74" ] && [ "$FIND_UNDEF_STRNDUP" == "" ];then
if [ "$version" -gt "74" ] && [ "$FIND_UNDEF_STRNDUP" = "" ];then
sed -i $BAK "s/char \*strndup/#undef strndup\nchar \*strndup/g" $FILE_softmagic
fi
fi
fi
FIND_C99=`cat Makefile|grep c99`
if [ "$version" -gt "74" ] && [ "$FIND_C99" == "" ];then
if [ "$version" -gt "74" ] && [ "$FIND_C99" = "" ];then
sed -i $BAK 's/CFLAGS \=/CFLAGS \= -std=gnu99/g' Makefile
fi
if [ "$version" -gt "80" ] && [ "$OSNAME" == 'centos' ];then
if [ "$version" -gt "80" ] && [ "$OSNAME" = 'centos' ];then
sed -i $BAK "s#CFLAGS = -g -O2#CFLAGS = -std=c99 -g#g" $sourcePath/php${version}/ext/${LIBNAME}/Makefile
fi

View File

@@ -56,11 +56,11 @@ Install_lib()
cd $sourcePath/php${version}/ext/${LIBNAME}
OPTIONS=""
if [ "${SYS_ARCH}" == "aarch64" ] && [ "$version" -lt "56" ];then
if [ "${SYS_ARCH}" = "aarch64" ] && [ "$version" -lt "56" ];then
OPTIONS="$OPTIONS --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu"
fi
if [ "$sysName" == "Darwin" ];then
if [ "$sysName" = "Darwin" ];then
OPTIONS="$OPTIONS --with-iconv=${serverPath}/lib/libiconv"
fi

View File

@@ -31,7 +31,7 @@ NON_ZTS_FILENAME=`ls $serverPath/php/${version}/${LIB_PATH_NAME}/extensions | gr
extFile=$serverPath/php/${version}/${LIB_PATH_NAME}/extensions/${NON_ZTS_FILENAME}/${LIBNAME}.so
sysName=`uname`
if [ "$sysName" == "Darwin" ];then
if [ "$sysName" = "Darwin" ];then
BAK='_bak'
else
BAK=''

View File

@@ -14,7 +14,7 @@ SYS_ARCH=`arch`
# _os=`uname`
# if [ ${_os} == "Darwin" ]; then
# if [ ${_os} = "Darwin" ]; then
# OSNAME='macos'
# elif grep -Eq "openSUSE" /etc/*-release; then
# OSNAME='opensuse'
@@ -54,7 +54,7 @@ NON_ZTS_FILENAME=`ls $serverPath/php/${version}/${LIB_PATH_NAME}/extensions | gr
extFile=$serverPath/php/${version}/${LIB_PATH_NAME}/extensions/${NON_ZTS_FILENAME}/${LIBNAME}.so
sysName=`uname`
if [ "$sysName" == "Darwin" ];then
if [ "$sysName" = "Darwin" ];then
BAK='_bak'
else
BAK=''
@@ -85,11 +85,11 @@ Install_lib()
fi
cd $sourcePath/php${version}/ext/${LIBNAME}
if [ "${SYS_ARCH}" == "aarch64" ] && [ "$version" -lt "56" ];then
if [ "${SYS_ARCH}" = "aarch64" ] && [ "$version" -lt "56" ];then
OPTIONS="$OPTIONS --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu"
fi
if [ "$sysName" == "Darwin" ];then
if [ "$sysName" = "Darwin" ];then
BREW_DIR=`which brew`
BREW_DIR=${BREW_DIR/\/bin\/brew/}
LIB_DEPEND_DIR=`brew info icu4c | grep ${BREW_DIR}/Cellar/icu4c | cut -d \ -f 1 | awk 'END {print}'`

View File

@@ -26,7 +26,7 @@ NON_ZTS_FILENAME=`ls $serverPath/php/${version}/${LIB_PATH_NAME}/extensions | gr
extFile=$serverPath/php/${version}/${LIB_PATH_NAME}/extensions/${NON_ZTS_FILENAME}/${LIBNAME}.so
sysName=`uname`
if [ "$sysName" == "Darwin" ];then
if [ "$sysName" = "Darwin" ];then
BAK='_bak'
else
BAK=''
@@ -50,7 +50,7 @@ Install_lib()
cd $sourcePath/php${version}/ext/${LIBNAME}
OPTIONS=""
if [ "${SYS_ARCH}" == "aarch64" ] && [ "$version" -lt "56" ];then
if [ "${SYS_ARCH}" = "aarch64" ] && [ "$version" -lt "56" ];then
OPTIONS="$OPTIONS --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu"
fi
@@ -103,8 +103,8 @@ Uninstall_lib()
if [ "$actionType" == 'install' ];then
if [ "$actionType" = 'install' ];then
Install_lib
elif [ "$actionType" == 'uninstall' ];then
elif [ "$actionType" = 'uninstall' ];then
Uninstall_lib
fi

View File

@@ -61,7 +61,7 @@ Install_lib()
cd $php_lib/${LIBNAME}-${LIBV}
OPTIONS=""
if [ "${SYS_ARCH}" == "aarch64" ] && [ "$version" -lt "56" ];then
if [ "${SYS_ARCH}" = "aarch64" ] && [ "$version" -lt "56" ];then
OPTIONS="$OPTIONS --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu"
fi

View File

@@ -63,12 +63,12 @@ Install_lib()
fi
OPTIONS=""
if [ "${SYS_ARCH}" == "aarch64" ] && [ "$version" -lt "56" ];then
if [ "${SYS_ARCH}" = "aarch64" ] && [ "$version" -lt "56" ];then
OPTIONS="$OPTIONS --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu"
fi
if [ "$sysName" == "Darwin" ];then
if [ "$sysName" = "Darwin" ];then
OPTIONS="$OPTIONS --with-zlib-dir=$(brew --prefix zlib)"
OPTIONS="$OPTIONS --with-libmemcached-dir=$(brew --prefix libmemcached)"
else

View File

@@ -26,7 +26,7 @@ fi
NON_ZTS_FILENAME=`ls $serverPath/php/${version}/${LIB_PATH_NAME}/extensions | grep no-debug-non-zts`
extFile=$serverPath/php/${version}/${LIB_PATH_NAME}/extensions/${NON_ZTS_FILENAME}/${LIBNAME}.so
if [ "$sysName" == "Darwin" ];then
if [ "$sysName" = "Darwin" ];then
BAK='_bak'
else
BAK=''
@@ -54,7 +54,7 @@ Install_lib()
cd $php_lib/${LIBNAME}-${LIBV}
OPTIONS=""
if [ "${SYS_ARCH}" == "aarch64" ] && [ "$version" -lt "56" ];then
if [ "${SYS_ARCH}" = "aarch64" ] && [ "$version" -lt "56" ];then
OPTIONS="$OPTIONS --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu"
fi
@@ -103,8 +103,8 @@ Uninstall_lib()
if [ "$actionType" == 'install' ];then
if [ "$actionType" = 'install' ];then
Install_lib
elif [ "$actionType" == 'uninstall' ];then
elif [ "$actionType" = 'uninstall' ];then
Uninstall_lib
fi

View File

@@ -25,7 +25,7 @@ NON_ZTS_FILENAME=`ls $serverPath/php/${version}/${LIB_PATH_NAME}/extensions | gr
extFile=$serverPath/php/${version}/${LIB_PATH_NAME}/extensions/${NON_ZTS_FILENAME}/${LIBNAME}.so
if [ "$sysName" == "Darwin" ];then
if [ "$sysName" = "Darwin" ];then
BAK='_bak'
else
BAK=''

View File

@@ -109,7 +109,7 @@ Install_lib()
export OPENSSL_LIBS="-L/${LIB_DEPEND_DIR}/lib -lssl -lcrypto -lz"
fi
# if [ "$version" -gt "82" ] && [ "$sysName" == "Darwin" ];then
# if [ "$version" -gt "82" ] && [ "$sysName" = "Darwin" ];then
# export PKG_CONFIG_PATH=$serverPath/lib/openssl/lib/pkgconfig
# fi

View File

@@ -109,7 +109,7 @@ Install_lib()
export OPENSSL_LIBS="-L/${LIB_DEPEND_DIR}/lib -lssl -lcrypto -lz"
fi
# if [ "$version" -gt "82" ] && [ "$sysName" == "Darwin" ];then
# if [ "$version" -gt "82" ] && [ "$sysName" = "Darwin" ];then
# export PKG_CONFIG_PATH=$serverPath/lib/openssl/lib/pkgconfig
# fi

View File

@@ -50,7 +50,7 @@ Install_lib()
fi
cd $sourcePath/php${version}/ext/${LIBNAME}
if [ "${SYS_ARCH}" == "aarch64" ] && [ "$version" -lt "56" ];then
if [ "${SYS_ARCH}" = "aarch64" ] && [ "$version" -lt "56" ];then
OPTIONS="$OPTIONS --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu"
fi

View File

@@ -17,7 +17,7 @@ sysName=`uname`
actionType=$1
version=$2
if [ "$version" == "52" ];then
if [ "$version" = "52" ];then
LIBV=2.2.7
elif [ "$version" -lt "70" ];then
LIBV=4.2.0
@@ -38,7 +38,7 @@ fi
NON_ZTS_FILENAME=`ls $serverPath/php/${version}/${LIB_PATH_NAME}/extensions | grep no-debug-non-zts`
extFile=$serverPath/php/${version}/${LIB_PATH_NAME}/extensions/${NON_ZTS_FILENAME}/${LIBNAME}.so
if [ "$sysName" == "Darwin" ];then
if [ "$sysName" = "Darwin" ];then
BAK='_bak'
else
BAK=''
@@ -66,7 +66,7 @@ Install_lib()
cd $php_lib/${LIBNAME}-${LIBV}
OPTIONS=""
if [ "${SYS_ARCH}" == "aarch64" ] && [ "$version" -lt "56" ];then
if [ "${SYS_ARCH}" = "aarch64" ] && [ "$version" -lt "56" ];then
OPTIONS="$OPTIONS --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu"
fi