From a61644861bb9b25f36d66513858d7f8549d8f9f7 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 11 Sep 2026 22:39:42 +0800 Subject: [PATCH] update --- plugins/mongodb/versions/6.0/debian.sh | 4 ++-- plugins/mongodb/versions/7.0/centos.sh | 2 +- plugins/mongodb/versions/7.0/debian.sh | 4 ++-- plugins/mongodb/versions/7.0/opensuse.sh | 6 +++--- plugins/mongodb/versions/8.0/opensuse.sh | 4 ++-- plugins/mongodb/versions/8.0/ubuntu.sh | 2 +- .../versions/9.0/install_generic.sh | 2 +- .../versions/9.3/install_generic.sh | 2 +- plugins/mysql/versions/8.3/install.sh | 2 +- plugins/mysql/versions/9.4/install.sh | 2 +- plugins/mysql/versions/9.7/install.sh | 4 ++-- plugins/nezha/install.sh | 2 +- plugins/op_waf/install.old.sh | 6 +++--- plugins/op_waf/install.sh | 6 +++--- plugins/op_waf/t/ngx_debug.sh | 4 ++-- plugins/openresty/versions/1.17.8/install.sh | 8 ++++---- plugins/openresty/versions/1.19.3/install.sh | 2 +- plugins/openresty/versions/1.21.4/install.sh | 2 +- plugins/openresty/versions/1.29.2/install.sh | 2 +- plugins/openresty/versions/rtmp/install.sh | 2 +- plugins/php/lib/libedit.sh | 2 +- plugins/php/lib/libiconv.sh | 2 +- plugins/php/lib/oniguruma.sh | 2 +- plugins/php/versions/53/intl.sh | 4 ++-- plugins/php/versions/54/install.sh | 2 +- plugins/php/versions/54/opcache.sh | 2 +- plugins/php/versions/55/install.sh | 6 +++--- plugins/php/versions/56/install.sh | 4 ++-- plugins/php/versions/56/zendguardloader.sh | 2 +- plugins/php/versions/70/install.sh | 10 +++++----- plugins/php/versions/71/install.sh | 6 +++--- plugins/php/versions/72/install.sh | 14 +++++++------- plugins/php/versions/73/install.sh | 8 ++++---- plugins/php/versions/74/install.sh | 2 +- plugins/php/versions/80/install.sh | 14 +++++++------- plugins/php/versions/81/install.sh | 8 ++++---- plugins/php/versions/82/install.sh | 6 +++--- plugins/php/versions/83/install.sh | 10 +++++----- plugins/php/versions/84/install.sh | 6 +++--- plugins/php/versions/85/install.sh | 10 +++++----- plugins/php/versions/common/brotli.sh | 8 ++++---- plugins/php/versions/common/curl.sh | 2 +- plugins/php/versions/common/event.sh | 2 +- plugins/php/versions/common/exif.sh | 4 ++-- plugins/php/versions/common/fileinfo.sh | 6 +++--- plugins/php/versions/common/iconv.sh | 4 ++-- plugins/php/versions/common/igbinary.sh | 2 +- plugins/php/versions/common/intl.sh | 8 ++++---- plugins/php/versions/common/ldap.sh | 8 ++++---- plugins/php/versions/common/memcache.sh | 2 +- plugins/php/versions/common/memcached.sh | 4 ++-- plugins/php/versions/common/mysql_xdevapi.sh | 8 ++++---- plugins/php/versions/common/opcache.sh | 2 +- plugins/php/versions/common/openssl_bak.sh | 2 +- plugins/php/versions/common/openssl_low_version.sh | 2 +- plugins/php/versions/common/pgsql.sh | 2 +- plugins/php/versions/common/redis.sh | 6 +++--- 57 files changed, 130 insertions(+), 130 deletions(-) diff --git a/plugins/mongodb/versions/6.0/debian.sh b/plugins/mongodb/versions/6.0/debian.sh index 889a26427..93c3e8582 100644 --- a/plugins/mongodb/versions/6.0/debian.sh +++ b/plugins/mongodb/versions/6.0/debian.sh @@ -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 diff --git a/plugins/mongodb/versions/7.0/centos.sh b/plugins/mongodb/versions/7.0/centos.sh index bd9406020..01bcc6f7e 100644 --- a/plugins/mongodb/versions/7.0/centos.sh +++ b/plugins/mongodb/versions/7.0/centos.sh @@ -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 diff --git a/plugins/mongodb/versions/7.0/debian.sh b/plugins/mongodb/versions/7.0/debian.sh index 349a4f2a2..8ce3292db 100644 --- a/plugins/mongodb/versions/7.0/debian.sh +++ b/plugins/mongodb/versions/7.0/debian.sh @@ -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 diff --git a/plugins/mongodb/versions/7.0/opensuse.sh b/plugins/mongodb/versions/7.0/opensuse.sh index fcf5be2e2..9554ec9a4 100644 --- a/plugins/mongodb/versions/7.0/opensuse.sh +++ b/plugins/mongodb/versions/7.0/opensuse.sh @@ -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 diff --git a/plugins/mongodb/versions/8.0/opensuse.sh b/plugins/mongodb/versions/8.0/opensuse.sh index 0ed21fed0..d117d76c7 100644 --- a/plugins/mongodb/versions/8.0/opensuse.sh +++ b/plugins/mongodb/versions/8.0/opensuse.sh @@ -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 diff --git a/plugins/mongodb/versions/8.0/ubuntu.sh b/plugins/mongodb/versions/8.0/ubuntu.sh index 0ee20e4e8..45f5535f3 100644 --- a/plugins/mongodb/versions/8.0/ubuntu.sh +++ b/plugins/mongodb/versions/8.0/ubuntu.sh @@ -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 diff --git a/plugins/mysql-community/versions/9.0/install_generic.sh b/plugins/mysql-community/versions/9.0/install_generic.sh index b446c04e0..179324988 100755 --- a/plugins/mysql-community/versions/9.0/install_generic.sh +++ b/plugins/mysql-community/versions/9.0/install_generic.sh @@ -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 '安装完成' diff --git a/plugins/mysql-community/versions/9.3/install_generic.sh b/plugins/mysql-community/versions/9.3/install_generic.sh index 1f72cd9f4..30a3ef67b 100755 --- a/plugins/mysql-community/versions/9.3/install_generic.sh +++ b/plugins/mysql-community/versions/9.3/install_generic.sh @@ -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 '安装完成' diff --git a/plugins/mysql/versions/8.3/install.sh b/plugins/mysql/versions/8.3/install.sh index f9b715175..a706a46dd 100755 --- a/plugins/mysql/versions/8.3/install.sh +++ b/plugins/mysql/versions/8.3/install.sh @@ -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 # 重新下载 diff --git a/plugins/mysql/versions/9.4/install.sh b/plugins/mysql/versions/9.4/install.sh index 8b6adf317..705efc6d2 100755 --- a/plugins/mysql/versions/9.4/install.sh +++ b/plugins/mysql/versions/9.4/install.sh @@ -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 # 重新下载 diff --git a/plugins/mysql/versions/9.7/install.sh b/plugins/mysql/versions/9.7/install.sh index cd1c7381f..0b1368795 100755 --- a/plugins/mysql/versions/9.7/install.sh +++ b/plugins/mysql/versions/9.7/install.sh @@ -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++ diff --git a/plugins/nezha/install.sh b/plugins/nezha/install.sh index fdb76e7e6..85382efb8 100755 --- a/plugins/nezha/install.sh +++ b/plugins/nezha/install.sh @@ -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 diff --git a/plugins/op_waf/install.old.sh b/plugins/op_waf/install.old.sh index bd887f732..e307b7b56 100755 --- a/plugins/op_waf/install.old.sh +++ b/plugins/op_waf/install.old.sh @@ -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 } diff --git a/plugins/op_waf/install.sh b/plugins/op_waf/install.sh index 2c17123f7..53dc35491 100755 --- a/plugins/op_waf/install.sh +++ b/plugins/op_waf/install.sh @@ -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 } diff --git a/plugins/op_waf/t/ngx_debug.sh b/plugins/op_waf/t/ngx_debug.sh index e04bc9daa..9a1701956 100644 --- a/plugins/op_waf/t/ngx_debug.sh +++ b/plugins/op_waf/t/ngx_debug.sh @@ -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" diff --git a/plugins/openresty/versions/1.17.8/install.sh b/plugins/openresty/versions/1.17.8/install.sh index 0e4f34da0..0ae977d89 100644 --- a/plugins/openresty/versions/1.17.8/install.sh +++ b/plugins/openresty/versions/1.17.8/install.sh @@ -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 diff --git a/plugins/openresty/versions/1.19.3/install.sh b/plugins/openresty/versions/1.19.3/install.sh index 5d9c7d788..18fba2b25 100644 --- a/plugins/openresty/versions/1.19.3/install.sh +++ b/plugins/openresty/versions/1.19.3/install.sh @@ -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 diff --git a/plugins/openresty/versions/1.21.4/install.sh b/plugins/openresty/versions/1.21.4/install.sh index 26241315c..41d4f6b9b 100644 --- a/plugins/openresty/versions/1.21.4/install.sh +++ b/plugins/openresty/versions/1.21.4/install.sh @@ -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 diff --git a/plugins/openresty/versions/1.29.2/install.sh b/plugins/openresty/versions/1.29.2/install.sh index 9472f6e05..9521b74a8 100644 --- a/plugins/openresty/versions/1.29.2/install.sh +++ b/plugins/openresty/versions/1.29.2/install.sh @@ -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 diff --git a/plugins/openresty/versions/rtmp/install.sh b/plugins/openresty/versions/rtmp/install.sh index b8295a372..2cd201d94 100644 --- a/plugins/openresty/versions/rtmp/install.sh +++ b/plugins/openresty/versions/rtmp/install.sh @@ -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 diff --git a/plugins/php/lib/libedit.sh b/plugins/php/lib/libedit.sh index 405ed0f4a..174e84108 100644 --- a/plugins/php/lib/libedit.sh +++ b/plugins/php/lib/libedit.sh @@ -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 diff --git a/plugins/php/lib/libiconv.sh b/plugins/php/lib/libiconv.sh index f00c144c3..28be9e2a6 100644 --- a/plugins/php/lib/libiconv.sh +++ b/plugins/php/lib/libiconv.sh @@ -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 diff --git a/plugins/php/lib/oniguruma.sh b/plugins/php/lib/oniguruma.sh index 33c8ab0fb..a99dc8846 100644 --- a/plugins/php/lib/oniguruma.sh +++ b/plugins/php/lib/oniguruma.sh @@ -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 diff --git a/plugins/php/versions/53/intl.sh b/plugins/php/versions/53/intl.sh index 410db5ed2..61ca72518 100755 --- a/plugins/php/versions/53/intl.sh +++ b/plugins/php/versions/53/intl.sh @@ -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 diff --git a/plugins/php/versions/54/install.sh b/plugins/php/versions/54/install.sh index 5c88efb03..f8f71a446 100755 --- a/plugins/php/versions/54/install.sh +++ b/plugins/php/versions/54/install.sh @@ -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 diff --git a/plugins/php/versions/54/opcache.sh b/plugins/php/versions/54/opcache.sh index c8cc748f3..899df6b68 100755 --- a/plugins/php/versions/54/opcache.sh +++ b/plugins/php/versions/54/opcache.sh @@ -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='' diff --git a/plugins/php/versions/55/install.sh b/plugins/php/versions/55/install.sh index ca53445b1..95c5e2e57 100755 --- a/plugins/php/versions/55/install.sh +++ b/plugins/php/versions/55/install.sh @@ -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 diff --git a/plugins/php/versions/56/install.sh b/plugins/php/versions/56/install.sh index 3e43a1d64..7ee32a595 100755 --- a/plugins/php/versions/56/install.sh +++ b/plugins/php/versions/56/install.sh @@ -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 diff --git a/plugins/php/versions/56/zendguardloader.sh b/plugins/php/versions/56/zendguardloader.sh index 2da72decb..1df875867 100755 --- a/plugins/php/versions/56/zendguardloader.sh +++ b/plugins/php/versions/56/zendguardloader.sh @@ -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 diff --git a/plugins/php/versions/70/install.sh b/plugins/php/versions/70/install.sh index f8439c2cb..c5aa3912a 100755 --- a/plugins/php/versions/70/install.sh +++ b/plugins/php/versions/70/install.sh @@ -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/} diff --git a/plugins/php/versions/71/install.sh b/plugins/php/versions/71/install.sh index 267e92ba6..ab807ab7b 100755 --- a/plugins/php/versions/71/install.sh +++ b/plugins/php/versions/71/install.sh @@ -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 diff --git a/plugins/php/versions/72/install.sh b/plugins/php/versions/72/install.sh index 62990d0da..88119bdca 100755 --- a/plugins/php/versions/72/install.sh +++ b/plugins/php/versions/72/install.sh @@ -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/} diff --git a/plugins/php/versions/73/install.sh b/plugins/php/versions/73/install.sh index 1312cc914..f2bd69c0c 100755 --- a/plugins/php/versions/73/install.sh +++ b/plugins/php/versions/73/install.sh @@ -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 diff --git a/plugins/php/versions/74/install.sh b/plugins/php/versions/74/install.sh index e10b93092..12f9389fa 100755 --- a/plugins/php/versions/74/install.sh +++ b/plugins/php/versions/74/install.sh @@ -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/} diff --git a/plugins/php/versions/80/install.sh b/plugins/php/versions/80/install.sh index c44360782..42331b9b5 100755 --- a/plugins/php/versions/80/install.sh +++ b/plugins/php/versions/80/install.sh @@ -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/} diff --git a/plugins/php/versions/81/install.sh b/plugins/php/versions/81/install.sh index b8034c277..3af273e39 100755 --- a/plugins/php/versions/81/install.sh +++ b/plugins/php/versions/81/install.sh @@ -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/} diff --git a/plugins/php/versions/82/install.sh b/plugins/php/versions/82/install.sh index 87ed07283..a93e4f720 100755 --- a/plugins/php/versions/82/install.sh +++ b/plugins/php/versions/82/install.sh @@ -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 diff --git a/plugins/php/versions/83/install.sh b/plugins/php/versions/83/install.sh index 3ed3d0d4a..e9c52f55b 100755 --- a/plugins/php/versions/83/install.sh +++ b/plugins/php/versions/83/install.sh @@ -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/} diff --git a/plugins/php/versions/84/install.sh b/plugins/php/versions/84/install.sh index 76e99638f..48296b8f3 100755 --- a/plugins/php/versions/84/install.sh +++ b/plugins/php/versions/84/install.sh @@ -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 diff --git a/plugins/php/versions/85/install.sh b/plugins/php/versions/85/install.sh index d965505d6..55ef7a2b9 100755 --- a/plugins/php/versions/85/install.sh +++ b/plugins/php/versions/85/install.sh @@ -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 diff --git a/plugins/php/versions/common/brotli.sh b/plugins/php/versions/common/brotli.sh index 87141bf8d..132f2dd58 100755 --- a/plugins/php/versions/common/brotli.sh +++ b/plugins/php/versions/common/brotli.sh @@ -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 \ No newline at end of file diff --git a/plugins/php/versions/common/curl.sh b/plugins/php/versions/common/curl.sh index f96bef899..27834421b 100755 --- a/plugins/php/versions/common/curl.sh +++ b/plugins/php/versions/common/curl.sh @@ -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='' diff --git a/plugins/php/versions/common/event.sh b/plugins/php/versions/common/event.sh index 459576e29..e977aac74 100644 --- a/plugins/php/versions/common/event.sh +++ b/plugins/php/versions/common/event.sh @@ -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 diff --git a/plugins/php/versions/common/exif.sh b/plugins/php/versions/common/exif.sh index b39849fdd..ce0fdd654 100755 --- a/plugins/php/versions/common/exif.sh +++ b/plugins/php/versions/common/exif.sh @@ -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 diff --git a/plugins/php/versions/common/fileinfo.sh b/plugins/php/versions/common/fileinfo.sh index fe5d7db58..9e0fd4272 100755 --- a/plugins/php/versions/common/fileinfo.sh +++ b/plugins/php/versions/common/fileinfo.sh @@ -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 diff --git a/plugins/php/versions/common/iconv.sh b/plugins/php/versions/common/iconv.sh index a6af836b1..f3c18c675 100755 --- a/plugins/php/versions/common/iconv.sh +++ b/plugins/php/versions/common/iconv.sh @@ -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 diff --git a/plugins/php/versions/common/igbinary.sh b/plugins/php/versions/common/igbinary.sh index 9fbc15e9c..cf70cb2b8 100755 --- a/plugins/php/versions/common/igbinary.sh +++ b/plugins/php/versions/common/igbinary.sh @@ -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='' diff --git a/plugins/php/versions/common/intl.sh b/plugins/php/versions/common/intl.sh index d6086edde..1d22c8856 100755 --- a/plugins/php/versions/common/intl.sh +++ b/plugins/php/versions/common/intl.sh @@ -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}'` diff --git a/plugins/php/versions/common/ldap.sh b/plugins/php/versions/common/ldap.sh index bae5dae75..f5768ded4 100755 --- a/plugins/php/versions/common/ldap.sh +++ b/plugins/php/versions/common/ldap.sh @@ -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 \ No newline at end of file diff --git a/plugins/php/versions/common/memcache.sh b/plugins/php/versions/common/memcache.sh index 9fd7e80ae..d823852b2 100755 --- a/plugins/php/versions/common/memcache.sh +++ b/plugins/php/versions/common/memcache.sh @@ -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 diff --git a/plugins/php/versions/common/memcached.sh b/plugins/php/versions/common/memcached.sh index d50328c34..241e4dce5 100755 --- a/plugins/php/versions/common/memcached.sh +++ b/plugins/php/versions/common/memcached.sh @@ -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 diff --git a/plugins/php/versions/common/mysql_xdevapi.sh b/plugins/php/versions/common/mysql_xdevapi.sh index 4905f78a1..a6e488252 100755 --- a/plugins/php/versions/common/mysql_xdevapi.sh +++ b/plugins/php/versions/common/mysql_xdevapi.sh @@ -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 \ No newline at end of file diff --git a/plugins/php/versions/common/opcache.sh b/plugins/php/versions/common/opcache.sh index 57e3f8660..61ac895f9 100755 --- a/plugins/php/versions/common/opcache.sh +++ b/plugins/php/versions/common/opcache.sh @@ -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='' diff --git a/plugins/php/versions/common/openssl_bak.sh b/plugins/php/versions/common/openssl_bak.sh index b5581a302..5aaf9b47c 100755 --- a/plugins/php/versions/common/openssl_bak.sh +++ b/plugins/php/versions/common/openssl_bak.sh @@ -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 diff --git a/plugins/php/versions/common/openssl_low_version.sh b/plugins/php/versions/common/openssl_low_version.sh index b5581a302..5aaf9b47c 100755 --- a/plugins/php/versions/common/openssl_low_version.sh +++ b/plugins/php/versions/common/openssl_low_version.sh @@ -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 diff --git a/plugins/php/versions/common/pgsql.sh b/plugins/php/versions/common/pgsql.sh index 706db7f62..195e08540 100755 --- a/plugins/php/versions/common/pgsql.sh +++ b/plugins/php/versions/common/pgsql.sh @@ -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 diff --git a/plugins/php/versions/common/redis.sh b/plugins/php/versions/common/redis.sh index 4e9fbecc1..294b94719 100755 --- a/plugins/php/versions/common/redis.sh +++ b/plugins/php/versions/common/redis.sh @@ -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