This commit is contained in:
dami
2026-09-11 21:52:24 +08:00
parent acd46f4724
commit 36ca82c1b4
102 changed files with 255 additions and 255 deletions
+2 -2
View File
@@ -3,9 +3,9 @@ PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
function version_gt() { test "$(echo "$@" | tr " " "\n" | sort -V | head -n 1)" != "$1"; }
function version_le() { test "$(echo "$@" | tr " " "\n" | sort -V | head -n 1)" == "$1"; }
function version_le() { test "$(echo "$@" | tr " " "\n" | sort -V | head -n 1)" = "$1"; }
function version_lt() { test "$(echo "$@" | tr " " "\n" | sort -rV | head -n 1)" != "$1"; }
function version_ge() { test "$(echo "$@" | tr " " "\n" | sort -rV | head -n 1)" == "$1"; }
function version_ge() { test "$(echo "$@" | tr " " "\n" | sort -rV | head -n 1)" = "$1"; }
# cd /www/server/mdserver-web/plugins/gdrive && /bin/bash install.sh install 2.0
+1 -1
View File
@@ -66,7 +66,7 @@ Install_App()
git config --global push.default simple
if [ "macos" == "$OSNAME" ];then
if [ "macos" = "$OSNAME" ];then
file=gitea-${version}-darwin-10.12-amd64
else
file=gitea-${version}-linux-amd64
+4 -4
View File
@@ -17,11 +17,11 @@ sysArch=`arch`
sysName=`uname`
ARCH_NAME=amd64
if [ "$sysArch" == "arm64" ];then
if [ "$sysArch" = "arm64" ];then
ARCH_NAME=arm64
elif [ "$sysArch" == "x86_64" ]; then
elif [ "$sysArch" = "x86_64" ]; then
ARCH_NAME=amd64
elif [ "$sysArch" == "aarch64" ]; then
elif [ "$sysArch" = "aarch64" ]; then
ARCH_NAME=aarch64
fi
@@ -54,7 +54,7 @@ Uninstall_App()
}
action=${1}
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_App
else
Uninstall_App
+3 -3
View File
@@ -31,7 +31,7 @@ Install_App()
fi
if [ "${LOCAL_ADDR}" == "cn" ];then
if [ "${LOCAL_ADDR}" = "cn" ];then
if [ ! -f ${APP_DIR}/haproxy-${VERSION}.tar.gz ];then
wget -O ${APP_DIR}/haproxy-${VERSION}.tar.gz https://dl.midoks.icu/soft/haproxy/haproxy-${VERSION}.tar.gz
fi
@@ -39,7 +39,7 @@ Install_App()
if [ ! -f ${APP_DIR}/haproxy-${VERSION}.tar.gz ];then
if [ $sysName == 'Darwin' ]; then
if [ $sysName = 'Darwin' ]; then
wget --no-check-certificate -O ${APP_DIR}/haproxy-${VERSION}.tar.gz https://www.haproxy.org/download/${MIN_VERSION}/src/haproxy-${VERSION}.tar.gz
else
curl -sSLo ${APP_DIR}/haproxy-${VERSION}.tar.gz https://www.haproxy.org/download/${MIN_VERSION}/src/haproxy-${VERSION}.tar.gz
@@ -94,7 +94,7 @@ Uninstall_App()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_App
else
Uninstall_App
+5 -5
View File
@@ -26,12 +26,12 @@ Install_App()
LOCAL_ADDR=common
cn=$(curl -fsSL -m 10 -s http://ipinfo.io/json | grep "\"country\": \"CN\"")
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 ${APP_DIR}/haproxy-${VERSION}.tar.gz ];then
wget -O ${APP_DIR}/haproxy-${VERSION}.tar.gz https://dl.midoks.icu/soft/haproxy/haproxy-${VERSION}.tar.gz
fi
@@ -39,7 +39,7 @@ Install_App()
if [ ! -f ${APP_DIR}/haproxy-${VERSION}.tar.gz ];then
if [ $sysName == 'Darwin' ]; then
if [ $sysName = 'Darwin' ]; then
wget --no-check-certificate -O ${APP_DIR}/haproxy-${VERSION}.tar.gz https://www.haproxy.org/download/${MIN_VERSION}/src/haproxy-${VERSION}.tar.gz
else
curl -sSLo ${APP_DIR}/haproxy-${VERSION}.tar.gz https://www.haproxy.org/download/${MIN_VERSION}/src/haproxy-${VERSION}.tar.gz
@@ -53,7 +53,7 @@ Install_App()
cd ${APP_DIR} && tar -zxvf haproxy-${VERSION}.tar.gz
if [ "$OSNAME" == "macos" ];then
if [ "$OSNAME" = "macos" ];then
cd ${APP_DIR}/haproxy-${VERSION} && make TARGET=osx && make install PREFIX=$serverPath/haproxy
else
cd ${APP_DIR}/haproxy-${VERSION} && make TARGET=linux-glibc && make install PREFIX=$serverPath/haproxy
@@ -94,7 +94,7 @@ Uninstall_App()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_App
else
Uninstall_App
+5 -5
View File
@@ -26,12 +26,12 @@ Install_App()
LOCAL_ADDR=common
cn=$(curl -fsSL -m 10 -s http://ipinfo.io/json | grep "\"country\": \"CN\"")
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 ${APP_DIR}/haproxy-${VERSION}.tar.gz ];then
wget -O ${APP_DIR}/haproxy-${VERSION}.tar.gz https://dl.midoks.icu/soft/haproxy/haproxy-${VERSION}.tar.gz
fi
@@ -39,7 +39,7 @@ Install_App()
if [ ! -f ${APP_DIR}/haproxy-${VERSION}.tar.gz ];then
if [ $sysName == 'Darwin' ]; then
if [ $sysName = 'Darwin' ]; then
wget --no-check-certificate -O ${APP_DIR}/haproxy-${VERSION}.tar.gz https://www.haproxy.org/download/${MIN_VERSION}/src/haproxy-${VERSION}.tar.gz
else
curl -sSLo ${APP_DIR}/haproxy-${VERSION}.tar.gz https://www.haproxy.org/download/${MIN_VERSION}/src/haproxy-${VERSION}.tar.gz
@@ -53,7 +53,7 @@ Install_App()
cd ${APP_DIR} && tar -zxvf haproxy-${VERSION}.tar.gz
if [ "$OSNAME" == "macos" ];then
if [ "$OSNAME" = "macos" ];then
cd ${APP_DIR}/haproxy-${VERSION} && make TARGET=osx && make install PREFIX=$serverPath/haproxy
else
cd ${APP_DIR}/haproxy-${VERSION} && make TARGET=linux-glibc && make install PREFIX=$serverPath/haproxy
@@ -94,7 +94,7 @@ Uninstall_App()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_App
else
Uninstall_App
+3 -3
View File
@@ -21,9 +21,9 @@ ARCH="amd64"
get_arch() {
TMP_ARCH=`arch`
if [ "$TMP_ARCH" == "x86_64" ];then
if [ "$TMP_ARCH" = "x86_64" ];then
ARCH="amd64"
elif [ "$TMP_ARCH" == "aarch64" ];then
elif [ "$TMP_ARCH" = "aarch64" ];then
ARCH="arm64"
else
echo $ARCH
@@ -104,7 +104,7 @@ Uninstall_App()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_App
else
Uninstall_App
+1 -1
View File
@@ -91,7 +91,7 @@ Uninstall_App()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_App
else
Uninstall_App
+3 -3
View File
@@ -14,7 +14,7 @@ if [ -f ${rootPath}/bin/activate ];then
. ${rootPath}/bin/activate
fi
if [ "$sys_os" == "Darwin" ];then
if [ "$sys_os" = "Darwin" ];then
BAK='_bak'
else
BAK=''
@@ -23,7 +23,7 @@ fi
sysName=`uname`
echo "use system: ${sysName}"
if [ "${sysName}" == "Darwin" ]; then
if [ "${sysName}" = "Darwin" ]; then
OSNAME='macos'
elif grep -Eqi "CentOS" /etc/issue || grep -Eq "CentOS" /etc/*-release; then
OSNAME='centos'
@@ -83,7 +83,7 @@ Uninstall_App()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_App $2
else
Uninstall_App $2
+1 -1
View File
@@ -38,7 +38,7 @@ Uninstall_App()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_App
else
Uninstall_App
+1 -1
View File
@@ -37,7 +37,7 @@ Uninstall_App()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_App
else
Uninstall_App
+3 -3
View File
@@ -18,11 +18,11 @@ sysName=`uname`
echo "use system: ${sysName}"
OSNAME=`bash ${rootPath}/scripts/getos.sh`
if [ "" == "$OSNAME" ];then
if [ "" = "$OSNAME" ];then
OSNAME=`cat ${rootPath}/data/osname.pl`
fi
if [ "macos" == "$OSNAME" ];then
if [ "macos" = "$OSNAME" ];then
echo "不支持Macox"
exit
fi
@@ -77,7 +77,7 @@ Uninstall_App()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_App
else
Uninstall_App
+7 -7
View File
@@ -18,7 +18,7 @@ Install_LVS(){
mkdir -p $serverPath/source
which ipvsadm
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
echo '已安装LVS!!'
exit 0
fi
@@ -27,17 +27,17 @@ Install_LVS(){
# 检测平台命令
which apt
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
apt install -y ipvsadm
fi
which yum
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
yum install -y ipvsadm
fi
which ipvsadm
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
echo '正在安装LVS成功!'
mkdir -p $serverPath/lvs
@@ -59,12 +59,12 @@ Uninstall_LVS()
{
# 检测平台命令
which apt
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
apt remove -y ipvsadm
fi
which yum
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
yum uninstall -y ipvsadm
fi
echo "卸载LVS完成"
@@ -75,7 +75,7 @@ Uninstall_LVS()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_LVS
else
Uninstall_LVS
+2 -2
View File
@@ -23,11 +23,11 @@ ACTION=$1
VERSION=$2
which apt
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
sh -x $curPath/versions/apt/install.sh $1 $2
fi
which yum
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
sh -x $curPath/versions/yum/install.sh $1 $2
fi
@@ -60,7 +60,7 @@ Uninstall_App()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_App
else
Uninstall_App
+3 -3
View File
@@ -26,7 +26,7 @@ else
useradd -g mysql -s /usr/sbin/nologin mysql
fi
if [ "${2}" == "" ];then
if [ "${2}" = "" ];then
echo '缺少安装脚本...'
exit 0
fi
@@ -36,7 +36,7 @@ if [ ! -d $curPath/versions/$2 ];then
exit 0
fi
if [ "${action}" == "uninstall" ];then
if [ "${action}" = "uninstall" ];then
if [ -f /usr/lib/systemd/system/mariadb.service ] || [ -f /lib/systemd/system/mariadb.service ];then
systemctl stop mariadb
@@ -49,7 +49,7 @@ fi
sh -x $curPath/versions/$2/install.sh $1
if [ "${action}" == "install" ] && [ -d $serverPath/mariadb ];then
if [ "${action}" = "install" ] && [ -d $serverPath/mariadb ];then
#初始化
cd ${rootPath} && python3 ${rootPath}/plugins/mariadb/index.py start ${type}
cd ${rootPath} && python3 ${rootPath}/plugins/mariadb/index.py initd_install ${type}
+1 -1
View File
@@ -113,7 +113,7 @@ Uninstall_app()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_app
else
Uninstall_app
+2 -2
View File
@@ -71,7 +71,7 @@ Install_app()
INSTALL_CMD=cmake
CMAKE3=`which cmake3`
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
INSTALL_CMD=cmake3
fi
@@ -116,7 +116,7 @@ Uninstall_app()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_app
else
Uninstall_app
+1 -1
View File
@@ -103,7 +103,7 @@ Uninstall_app()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_app
else
Uninstall_app
+1 -1
View File
@@ -103,7 +103,7 @@ Uninstall_app()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_app
else
Uninstall_app
+1 -1
View File
@@ -113,7 +113,7 @@ Uninstall_app()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_app
else
Uninstall_app
+1 -1
View File
@@ -113,7 +113,7 @@ Uninstall_app()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_app
else
Uninstall_app
+1 -1
View File
@@ -113,7 +113,7 @@ Uninstall_app()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_app
else
Uninstall_app
+1 -1
View File
@@ -113,7 +113,7 @@ Uninstall_app()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_app
else
Uninstall_app
+1 -1
View File
@@ -113,7 +113,7 @@ Uninstall_app()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_app
else
Uninstall_app
+1 -1
View File
@@ -113,7 +113,7 @@ Uninstall_app()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_app
else
Uninstall_app
+1 -1
View File
@@ -113,7 +113,7 @@ Uninstall_app()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_app
else
Uninstall_app
+1 -1
View File
@@ -113,7 +113,7 @@ Uninstall_app()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_app
else
Uninstall_app
+2 -2
View File
@@ -24,7 +24,7 @@ Install_mem(){
cd $serverPath/source/memcached && tar -zxvf memcached.tar.gz
OPTIONS=''
if [ ${sys_os} == "Darwin" ]; then
if [ ${sys_os} = "Darwin" ]; then
LIB_DEPEND_DIR=`brew info libevent | grep /opt/homebrew/Cellar/libevent | cut -d \ -f 1 | awk 'END {print}'`
OPTIONS="${OPTIONS} --with-libevent=${LIB_DEPEND_DIR}"
fi
@@ -68,7 +68,7 @@ Uninstall_mem()
# /www/server/memcached/bin/memcached -d -p 11211 -u root -m 100 -c 100
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_mem
else
Uninstall_mem
+1 -1
View File
@@ -25,7 +25,7 @@ Uninstall_App()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_App
else
Uninstall_App
+3 -3
View File
@@ -41,7 +41,7 @@ Install_app_mac()
Install_Linux_Ubuntu()
{
##################### Ubuntu start #####################
if [ "$SYS_VERSION_ID" == "22" ]; then
if [ "$SYS_VERSION_ID" = "22" ]; then
echo "Not yet supported"
exit 1
fi
@@ -230,13 +230,13 @@ Install_app()
echo '正在安装脚本文件...'
mkdir -p $serverPath/source
if [ "macos" == "$OSNAME" ];then
if [ "macos" = "$OSNAME" ];then
Install_app_mac
else
Install_app_linux
fi
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
mkdir -p $serverPath/mongodb
echo "${VERSION}" > $serverPath/mongodb/version.pl
echo '安装完成'
+2 -2
View File
@@ -79,7 +79,7 @@ Install_app()
--ssl=off CPPPATH=$serverPath/lib/openssl/include \
LIBPATH=$serverPath/lib/openssl/lib"
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
mkdir -p $serverPath/mongodb
echo "${VERSION}" > $serverPath/mongodb/version.pl
echo '安装完成'
@@ -99,7 +99,7 @@ Uninstall_app()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_app
else
Uninstall_app
+3 -3
View File
@@ -48,7 +48,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
@@ -68,11 +68,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-ubuntu${SYS_NAME}-x86_64-${TOOL_VERSION}
if [ "aarch64" == ${SYS_ARCH} ];then
if [ "aarch64" = ${SYS_ARCH} ];then
TOOL_FILE_NAME=mongodb-database-tools-ubuntu${SYS_NAME}-arm64-${TOOL_VERSION}
fi
if [ "arm64" == ${SYS_ARCH} ];then
if [ "arm64" = ${SYS_ARCH} ];then
TOOL_FILE_NAME=mongodb-database-tools-ubuntu${SYS_NAME}-arm64-${TOOL_VERSION}
fi
+5 -5
View File
@@ -15,11 +15,11 @@ SYS_VERSION_ID=`cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | a
SYS_NAME=${SYS_VERSION_ID/./}
SYS_NAME_LEN=`echo "$SYS_NAME" | wc -L`
if [ "$SYS_NAME_LEN" == "1" ];then
if [ "$SYS_NAME_LEN" = "1" ];then
SYS_NAME=${SYS_NAME}0
fi
if [ "$SYS_ARCH" == "aarch64" ];then
if [ "$SYS_ARCH" = "aarch64" ];then
SYS_NAME="82"
else
@@ -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
@@ -76,11 +76,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-rhel${SYS_NAME}-x86_64-${TOOL_VERSION}
if [ "aarch64" == ${SYS_ARCH} ];then
if [ "aarch64" = ${SYS_ARCH} ];then
TOOL_FILE_NAME=mongodb-database-tools-rhel${SYS_NAME}-aarch64-${TOOL_VERSION}
fi
if [ "arm64" == ${SYS_ARCH} ];then
if [ "arm64" = ${SYS_ARCH} ];then
TOOL_FILE_NAME=mongodb-database-tools-rhel${SYS_NAME}-arm64-${TOOL_VERSION}
fi
+4 -4
View File
@@ -30,11 +30,11 @@ fi
#--------------- mongosh tool install ------------------ #
TOOL_VERSION=2.2.5
TOOL_FILE_NAME=mongosh-${TOOL_VERSION}-darwin-x64
if [ "aarch64" == ${SYS_ARCH} ];then
if [ "aarch64" = ${SYS_ARCH} ];then
TOOL_FILE_NAME=mongosh-${TOOL_VERSION}-darwin-arm64
fi
if [ "arm64" == ${SYS_ARCH} ];then
if [ "arm64" = ${SYS_ARCH} ];then
TOOL_FILE_NAME=mongosh-${TOOL_VERSION}-darwin-arm64
fi
TOOL_FILE_NAME_TGZ=${TOOL_FILE_NAME}.zip
@@ -54,11 +54,11 @@ cd ${MG_DIR} && rm -rf ${MG_DIR}/${TOOL_FILE_NAME}
# https://fastdl.mongodb.org/tools/db/mongodb-database-tools-macos-arm64-100.9.4.zip
TOOL_VERSION=100.9.4
TOOL_FILE_NAME=mongodb-database-tools-macos-x86_64-${TOOL_VERSION}
if [ "aarch64" == ${SYS_ARCH} ];then
if [ "aarch64" = ${SYS_ARCH} ];then
TOOL_FILE_NAME=mongodb-database-tools-macos-arm64-${TOOL_VERSION}
fi
if [ "arm64" == ${SYS_ARCH} ];then
if [ "arm64" = ${SYS_ARCH} ];then
TOOL_FILE_NAME=mongodb-database-tools-macos-arm64-${TOOL_VERSION}
fi
+3 -3
View File
@@ -48,7 +48,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
@@ -68,11 +68,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-ubuntu${SYS_NAME}-x86_64-${TOOL_VERSION}
if [ "aarch64" == ${SYS_ARCH} ];then
if [ "aarch64" = ${SYS_ARCH} ];then
TOOL_FILE_NAME=mongodb-database-tools-ubuntu${SYS_NAME}-arm64-${TOOL_VERSION}
fi
if [ "arm64" == ${SYS_ARCH} ];then
if [ "arm64" = ${SYS_ARCH} ];then
TOOL_FILE_NAME=mongodb-database-tools-ubuntu${SYS_NAME}-arm64-${TOOL_VERSION}
fi
+3 -3
View File
@@ -30,7 +30,7 @@ fi
#--------------- mongosh tool install ------------------ #
TOOL_VERSION=2.2.5
TOOL_FILE_NAME=mongosh-${TOOL_VERSION}-darwin-x64
if [ "aarch64" == ${SYS_ARCH} ];then
if [ "aarch64" = ${SYS_ARCH} ];then
TOOL_FILE_NAME=mongosh-${TOOL_VERSION}-darwin-arm64
fi
@@ -54,11 +54,11 @@ cd ${MG_DIR} && rm -rf ${MG_DIR}/${TOOL_FILE_NAME}
# https://fastdl.mongodb.org/tools/db/mongodb-database-tools-macos-arm64-100.9.4.zip
TOOL_VERSION=100.9.4
TOOL_FILE_NAME=mongodb-database-tools-macos-x86_64-${TOOL_VERSION}
if [ "aarch64" == ${SYS_ARCH} ];then
if [ "aarch64" = ${SYS_ARCH} ];then
TOOL_FILE_NAME=mongodb-database-tools-macos-arm64-${TOOL_VERSION}
fi
if [ "arm64" == ${SYS_ARCH} ];then
if [ "arm64" = ${SYS_ARCH} ];then
TOOL_FILE_NAME=mongodb-database-tools-macos-arm64-${TOOL_VERSION}
fi
+3 -3
View File
@@ -50,7 +50,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
@@ -70,11 +70,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
+4 -4
View File
@@ -33,11 +33,11 @@ fi
#--------------- mongosh tool install ------------------ #
TOOL_VERSION=2.2.5
TOOL_FILE_NAME=mongosh-${TOOL_VERSION}-darwin-x64
if [ "aarch64" == ${SYS_ARCH} ];then
if [ "aarch64" = ${SYS_ARCH} ];then
TOOL_FILE_NAME=mongosh-${TOOL_VERSION}-darwin-arm64
fi
if [ "arm64" == ${SYS_ARCH} ];then
if [ "arm64" = ${SYS_ARCH} ];then
TOOL_FILE_NAME=mongosh-${TOOL_VERSION}-darwin-arm64
fi
TOOL_FILE_NAME_TGZ=${TOOL_FILE_NAME}.zip
@@ -58,11 +58,11 @@ cd ${MG_DIR} && rm -rf ${MG_DIR}/${TOOL_FILE_NAME}
# https://fastdl.mongodb.org/tools/db/mongodb-database-tools-macos-arm64-100.9.4.zip
TOOL_VERSION=100.9.4
TOOL_FILE_NAME=mongodb-database-tools-macos-x86_64-${TOOL_VERSION}
if [ "aarch64" == ${SYS_ARCH} ];then
if [ "aarch64" = ${SYS_ARCH} ];then
TOOL_FILE_NAME=mongodb-database-tools-macos-arm64-${TOOL_VERSION}
fi
if [ "arm64" == ${SYS_ARCH} ];then
if [ "arm64" = ${SYS_ARCH} ];then
TOOL_FILE_NAME=mongodb-database-tools-macos-arm64-${TOOL_VERSION}
fi
+3 -3
View File
@@ -50,7 +50,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
@@ -70,11 +70,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-ubuntu${SYS_NAME}-x86_64-${TOOL_VERSION}
if [ "aarch64" == ${SYS_ARCH} ];then
if [ "aarch64" = ${SYS_ARCH} ];then
TOOL_FILE_NAME=mongodb-database-tools-ubuntu${SYS_NAME}-arm64-${TOOL_VERSION}
fi
if [ "arm64" == ${SYS_ARCH} ];then
if [ "arm64" = ${SYS_ARCH} ];then
TOOL_FILE_NAME=mongodb-database-tools-ubuntu${SYS_NAME}-arm64-${TOOL_VERSION}
fi
+5 -5
View File
@@ -16,7 +16,7 @@ mkdir -p $MG_DIR
# https://fastdl.mongodb.org/osx/mongodb-macos-arm64-8.0.3.tgz
FILE_NAME=mongodb-macos-x86_64-${VERSION}
if [ "arm64" == "${SYS_ARCH}" ];then
if [ "arm64" = "${SYS_ARCH}" ];then
FILE_NAME=mongodb-macos-arm64-${VERSION}
fi
FILE_NAME_TGZ=${FILE_NAME}.tgz
@@ -40,11 +40,11 @@ fi
#--------------- mongosh tool install ------------------ #
TOOL_VERSION=2.2.5
TOOL_FILE_NAME=mongosh-${TOOL_VERSION}-darwin-x64
if [ "aarch64" == ${SYS_ARCH} ];then
if [ "aarch64" = ${SYS_ARCH} ];then
TOOL_FILE_NAME=mongosh-${TOOL_VERSION}-darwin-arm64
fi
if [ "arm64" == ${SYS_ARCH} ];then
if [ "arm64" = ${SYS_ARCH} ];then
TOOL_FILE_NAME=mongosh-${TOOL_VERSION}-darwin-arm64
fi
TOOL_FILE_NAME_TGZ=${TOOL_FILE_NAME}.zip
@@ -65,11 +65,11 @@ cd ${MG_DIR} && rm -rf ${MG_DIR}/${TOOL_FILE_NAME}
# https://fastdl.mongodb.org/tools/db/mongodb-database-tools-macos-arm64-100.9.4.zip
TOOL_VERSION=100.9.4
TOOL_FILE_NAME=mongodb-database-tools-macos-x86_64-${TOOL_VERSION}
if [ "aarch64" == ${SYS_ARCH} ];then
if [ "aarch64" = ${SYS_ARCH} ];then
TOOL_FILE_NAME=mongodb-database-tools-macos-arm64-${TOOL_VERSION}
fi
if [ "arm64" == ${SYS_ARCH} ];then
if [ "arm64" = ${SYS_ARCH} ];then
TOOL_FILE_NAME=mongodb-database-tools-macos-arm64-${TOOL_VERSION}
fi
+1 -1
View File
@@ -42,7 +42,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
+2 -2
View File
@@ -23,11 +23,11 @@ if [ "$SYS_NAME" -lt "2004" ];then
SYS_NAME="2004"
fi
if [ "$SYS_NAME" == "2204" ];then
if [ "$SYS_NAME" = "2204" ];then
SYS_NAME="2204"
fi
if [ "$SYS_NAME" == "2404" ];then
if [ "$SYS_NAME" = "2404" ];then
SYS_NAME="2404"
fi
+1 -1
View File
@@ -81,7 +81,7 @@ Uninstall_App()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_App
else
Uninstall_App
@@ -19,7 +19,7 @@ OS_ARCH=`arch`
MYSQL_VER=5.7.44
SUFFIX_NAME=${MYSQL_VER}-linux-glibc2.12-${OS_ARCH}
if [ "$OS_ARCH" == "x86_64" ] || [ "$OS_ARCH" == "i686" ];then
if [ "$OS_ARCH" = "x86_64" ] || [ "$OS_ARCH" = "i686" ];then
echo "ok"
else
echo "暂时不支持该${OS_ARCH}"
@@ -62,7 +62,7 @@ Install_mysql()
{
echo '正在安装脚本文件...'
COMMUNITY_INSTALL
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
mkdir -p $serverPath/mysql-community
echo '5.7' > $serverPath/mysql-community/version.pl
echo '安装完成'
@@ -80,7 +80,7 @@ Uninstall_mysql()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_mysql
else
Uninstall_mysql
@@ -56,7 +56,7 @@ Install_mysql()
echo '正在安装脚本文件...'
COMMUNITY_INSTALL
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
mkdir -p $serverPath/mysql-community
echo '8.2' > $serverPath/mysql-community/version.pl
echo '安装完成'
@@ -74,7 +74,7 @@ Uninstall_mysql()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_mysql
else
Uninstall_mysql
@@ -76,7 +76,7 @@ Uninstall_mysql()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_mysql
else
Uninstall_mysql
+1 -1
View File
@@ -33,7 +33,7 @@ else
useradd -g mysql -s /usr/sbin/nologin mysql
fi
if [ "${2}" == "" ];then
if [ "${2}" = "" ];then
echo '缺少安装脚本...'
exit 0
fi
+1 -1
View File
@@ -110,7 +110,7 @@ Install_mysql()
WHERE_DIR_GPP=`which g++`
fi
if [ "$OSNAME" == "ubuntu" ];then
if [ "$OSNAME" = "ubuntu" ];then
apt install -y libudev-dev
apt install -y libtirpc-dev
apt install -y libssl-dev
+2 -2
View File
@@ -129,7 +129,7 @@ Install_mysql()
WHERE_DIR_GCC=/usr/bin/gcc
WHERE_DIR_GPP=/usr/bin/g++
if [ "$OSNAME" == "centos" ] && [ "$VERSION_ID" == "7" ];then
if [ "$OSNAME" = "centos" ] && [ "$VERSION_ID" = "7" ];then
yum install -y libudev-devel
yum install -y centos-release-scl
yum install -y devtoolset-11-gcc devtoolset-11-gcc-c++ devtoolset-11-binutils
@@ -141,7 +141,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
+4 -4
View File
@@ -107,7 +107,7 @@ Install_mysql()
md5_mysql_ok=db1e11216dd83423a9374999367d77e4
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 "mysql8.4 file check ok"
else
# 重新下载
@@ -132,7 +132,7 @@ Install_mysql()
WHERE_DIR_GCC=/usr/bin/gcc
WHERE_DIR_GPP=/usr/bin/g++
if [ "$OSNAME" == "centos" ] && [ "$VERSION_ID" == "7" ];then
if [ "$OSNAME" = "centos" ] && [ "$VERSION_ID" = "7" ];then
yum install -y libudev-devel
yum install -y centos-release-scl
yum install -y devtoolset-11-gcc devtoolset-11-gcc-c++ devtoolset-11-binutils
@@ -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
@@ -166,7 +166,7 @@ Install_mysql()
fi
if [ "$OSNAME" == "opensuse" ];then
if [ "$OSNAME" = "opensuse" ];then
zypper install -y gcc11
zypper install -y gcc11-c++
+2 -2
View File
@@ -132,7 +132,7 @@ Install_mysql()
WHERE_DIR_GCC=/usr/bin/gcc
WHERE_DIR_GPP=/usr/bin/g++
if [ "$OSNAME" == "centos" ] && [ "$VERSION_ID" == "7" ];then
if [ "$OSNAME" = "centos" ] && [ "$VERSION_ID" = "7" ];then
yum install -y libudev-devel
yum install -y centos-release-scl
yum install -y devtoolset-11-gcc devtoolset-11-gcc-c++ devtoolset-11-binutils
@@ -170,7 +170,7 @@ Install_mysql()
fi
if [ "$OSNAME" == "opensuse" ];then
if [ "$OSNAME" = "opensuse" ];then
zypper install -y gcc11
zypper install -y gcc11-c++
+4 -4
View File
@@ -16,7 +16,7 @@ mysqlDir=${serverPath}/source/mysql
_os=`uname`
echo "use system: ${_os}"
if [ ${_os} =="Darwin" ]; then
if [ ${_os} = "Darwin" ]; then
OSNAME='macos'
elif grep -Eq "openSUSE" /etc/*-release; then
OSNAME='opensuse'
@@ -132,7 +132,7 @@ Install_mysql()
WHERE_DIR_GCC=/usr/bin/gcc
WHERE_DIR_GPP=/usr/bin/g++
if [ "$OSNAME" == "centos" ] && [ "$VERSION_ID" == "7" ];then
if [ "$OSNAME" = "centos" ] && [ "$VERSION_ID" = "7" ];then
yum install -y libudev-devel
yum install -y centos-release-scl
yum install -y devtoolset-11-gcc devtoolset-11-gcc-c++ devtoolset-11-binutils
@@ -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++
+2 -2
View File
@@ -77,7 +77,7 @@ Install_openresty()
opensslVersion="1.1.1p"
libresslVersion="3.9.1"
pcreVersion='8.38'
if [ "$sysName" == "Darwin" ];then
if [ "$sysName" = "Darwin" ];then
if [ ! -f ${openrestyDir}/pcre-${pcreVersion}.tar.gz ];then
wget --no-check-certificate -O ${openrestyDir}/pcre-${pcreVersion}.tar.gz https://netix.dl.sourceforge.net/project/pcre/pcre/${pcreVersion}/pcre-${pcreVersion}.tar.gz
@@ -151,7 +151,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
+6 -6
View File
@@ -20,7 +20,7 @@ openrestyDir=${serverPath}/source/openresty
Install_openresty()
{
if [ "${action}" == "install" ];then
if [ "${action}" = "install" ];then
if [ -d $serverPath/openresty ];then
exit 0
fi
@@ -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
@@ -77,7 +77,7 @@ Install_openresty()
opensslVersion="1.1.1p"
libresslVersion="3.9.1"
pcreVersion='8.38'
if [ "$sysName" == "Darwin" ];then
if [ "$sysName" = "Darwin" ];then
if [ ! -f ${openrestyDir}/pcre-${pcreVersion}.tar.gz ];then
wget --no-check-certificate -O ${openrestyDir}/pcre-${pcreVersion}.tar.gz https://netix.dl.sourceforge.net/project/pcre/pcre/${pcreVersion}/pcre-${pcreVersion}.tar.gz
@@ -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
@@ -202,9 +202,9 @@ Uninstall_openresty()
}
action=$1
if [ "${1}" == "install" ];then
if [ "${1}" = "install" ];then
Install_openresty
elif [ "${1}" == "upgrade" ];then
elif [ "${1}" = "upgrade" ];then
Install_openresty
else
Uninstall_openresty
+5 -5
View File
@@ -3,9 +3,9 @@ PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin:/opt/hom
export PATH
function version_gt() { test "$(echo "$@" | tr " " "\n" | sort -V | head -n 1)" != "$1"; }
function version_le() { test "$(echo "$@" | tr " " "\n" | sort -V | head -n 1)" == "$1"; }
function version_le() { test "$(echo "$@" | tr " " "\n" | sort -V | head -n 1)" = "$1"; }
function version_lt() { test "$(echo "$@" | tr " " "\n" | sort -rV | head -n 1)" != "$1"; }
function version_ge() { test "$(echo "$@" | tr " " "\n" | sort -rV | head -n 1)" == "$1"; }
function version_ge() { test "$(echo "$@" | tr " " "\n" | sort -rV | head -n 1)" = "$1"; }
curPath=`pwd`
rootPath=$(dirname "$curPath")
@@ -30,7 +30,7 @@ echo "python:$P_VER"
# cd /www/server/mdserver-web && python3 plugins/pgadmin/index.py start
# cd /www/server/mdserver-web && python3 plugins/pgadmin/index.py stop
if [ "$sys_os" == "Darwin" ];then
if [ "$sys_os" = "Darwin" ];then
BAK='_bak'
else
BAK=''
@@ -39,7 +39,7 @@ fi
sysName=`uname`
echo "use system: ${sysName}"
if [ "${sysName}" == "Darwin" ]; then
if [ "${sysName}" = "Darwin" ]; then
OSNAME='macos'
elif grep -Eqi "CentOS" /etc/issue || grep -Eq "CentOS" /etc/*-release; then
OSNAME='centos'
@@ -119,7 +119,7 @@ Uninstall_pgadmin()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_pgadmin $2
else
Uninstall_pgadmin $2
+5 -5
View File
@@ -44,16 +44,16 @@ if [ ! -d $curPath/versions/$2 ];then
fi
if [ "$OSNAME" == "ubuntu" ];then
if [ "$OSNAME" = "ubuntu" ];then
find_source=`ls /etc/apt/sources.list.d | grep ondrej-ubuntu-php`
if [ "$find_source" == "" ];then
if [ "$find_source" = "" ];then
echo "y" | LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php && apt update -y
fi
fi
# apt install $(grep-aptavail -S PHP-defaults -s Package -n)
if [ ! -f /etc/apt/sources.list.d/php.list ] && [ "$OSNAME" == "debian" ];then
if [ ! -f /etc/apt/sources.list.d/php.list ] && [ "$OSNAME" = "debian" ];then
# install php source
apt install -y apt-transport-https lsb-release ca-certificates curl
cn=$(curl -fsSL -m 10 http://ipinfo.io/json | grep "\"country\": \"CN\"")
@@ -68,7 +68,7 @@ if [ ! -f /etc/apt/sources.list.d/php.list ] && [ "$OSNAME" == "debian" ];then
fi
if [ "${action}" == "uninstall" ] && [ -d ${serverPath}/php-apt/${type} ];then
if [ "${action}" = "uninstall" ] && [ -d ${serverPath}/php-apt/${type} ];then
#初始化
cd ${rootPath} && python3 ${rootPath}/plugins/php-apt/index.py stop ${type}
cd ${rootPath} && python3 ${rootPath}/plugins/php-apt/index.py initd_uninstall ${type}
@@ -86,7 +86,7 @@ fi
cd ${curPath} && sh -x $curPath/versions/$2/install.sh $1
if [ "${action}" == "install" ] && [ -d ${serverPath}/php-apt/${type} ];then
if [ "${action}" = "install" ] && [ -d ${serverPath}/php-apt/${type} ];then
apt update -y
#初始化
+2 -2
View File
@@ -24,7 +24,7 @@ Install_php()
{
#------------------------ install start ------------------------------------#
apt -y install php${version} php${version}-fpm php${version}-dev
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
mkdir -p $serverPath/php-apt/${PHP_VER}
fi
@@ -43,7 +43,7 @@ echo "卸载php-${version}..."
}
action=${1}
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_php
else
Uninstall_php
+2 -2
View File
@@ -23,7 +23,7 @@ Install_php()
{
#------------------------ install start ------------------------------------#
apt -y install php${version} php${version}-fpm php${version}-dev
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
mkdir -p $serverPath/php-apt/${PHP_VER}
fi
@@ -40,7 +40,7 @@ echo "卸载php-${version}..."
}
action=${1}
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_php
else
Uninstall_php
+2 -2
View File
@@ -24,7 +24,7 @@ Install_php()
{
#------------------------ install start ------------------------------------#
apt -y install php${version} php${version}-fpm php${version}-dev
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
mkdir -p $serverPath/php-apt/${PHP_VER}
fi
@@ -41,7 +41,7 @@ echo "卸载php-${version}..."
}
action=${1}
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_php
else
Uninstall_php
+2 -2
View File
@@ -25,7 +25,7 @@ Install_php()
{
#------------------------ install start ------------------------------------#
apt -y install php${version} php${version}-fpm php${version}-dev
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
mkdir -p $serverPath/php-apt/${PHP_VER}
fi
@@ -44,7 +44,7 @@ echo "卸载php-${version}..."
}
action=${1}
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_php
else
Uninstall_php
+2 -2
View File
@@ -24,7 +24,7 @@ Install_php()
{
#------------------------ install start ------------------------------------#
apt -y install php${version} php${version}-fpm php${version}-dev
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
mkdir -p $serverPath/php-apt/${PHP_VER}
fi
@@ -41,7 +41,7 @@ echo "卸载php-${version}..."
}
action=${1}
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_php
else
Uninstall_php
+2 -2
View File
@@ -23,7 +23,7 @@ Install_php()
{
#------------------------ install start ------------------------------------#
apt -y install php${version} php${version}-fpm php${version}-dev
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
mkdir -p $serverPath/php-apt/${PHP_VER}
fi
@@ -40,7 +40,7 @@ echo "卸载php-${version}..."
}
action=${1}
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_php
else
Uninstall_php
+2 -2
View File
@@ -23,7 +23,7 @@ Install_php()
{
#------------------------ install start ------------------------------------#
apt -y install php${version} php${version}-fpm php${version}-dev
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
mkdir -p $serverPath/php-apt/${PHP_VER}
fi
@@ -40,7 +40,7 @@ echo "卸载php-${version}..."
}
action=${1}
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_php
else
Uninstall_php
+2 -2
View File
@@ -23,7 +23,7 @@ Install_php()
{
#------------------------ install start ------------------------------------#
apt -y install php${version} php${version}-fpm php${version}-dev
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
mkdir -p $serverPath/php-apt/${PHP_VER}
fi
@@ -40,7 +40,7 @@ echo "卸载php-${version}..."
}
action=${1}
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_php
else
Uninstall_php
+2 -2
View File
@@ -23,7 +23,7 @@ Install_php()
{
#------------------------ install start ------------------------------------#
apt -y install php${version} php${version}-fpm php${version}-dev
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
mkdir -p $serverPath/php-apt/${PHP_VER}
fi
@@ -40,7 +40,7 @@ echo "卸载php-${version}..."
}
action=${1}
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_php
else
Uninstall_php
+2 -2
View File
@@ -23,7 +23,7 @@ Install_php()
{
#------------------------ install start ------------------------------------#
apt -y install php${version} php${version}-fpm php${version}-dev
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
mkdir -p $serverPath/php-apt/${PHP_VER}
fi
@@ -40,7 +40,7 @@ echo "卸载php-${version}..."
}
action=${1}
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_php
else
Uninstall_php
+2 -2
View File
@@ -23,7 +23,7 @@ Install_php()
{
#------------------------ install start ------------------------------------#
apt -y install php${version} php${version}-fpm php${version}-dev
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
mkdir -p $serverPath/php-apt/${PHP_VER}
fi
@@ -40,7 +40,7 @@ echo "卸载php-${version}..."
}
action=${1}
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_php
else
Uninstall_php
+3 -3
View File
@@ -28,7 +28,7 @@ FILE=${curPath}/${version}/${extName}.sh
FILE_COMMON=${curPath}/common/${extName}.sh
# apt install -y php81-php-yar
if [ "$action" == 'install' ];then
if [ "$action" = 'install' ];then
if [ -f $FILE ];then
bash ${curPath}/${version}/${extName}.sh install $version
@@ -40,7 +40,7 @@ if [ "$action" == 'install' ];then
fi
# apt remove -y php81-php-yar
if [ "$action" == 'uninstall' ];then
if [ "$action" = 'uninstall' ];then
if [ -f $FILE ];then
bash ${curPath}/${version}/${extName}.sh uninstall $version
elif [ -f $FILE_COMMON ];then
@@ -55,6 +55,6 @@ echo "apt remove -y php${version}-${extName}"
php_status=`systemctl status php${version}-fpm | grep inactive`
echo "status:$php_status"
if [ "$php_status" == "" ];then
if [ "$php_status" = "" ];then
systemctl restart php${version}-fpm
fi
+3 -3
View File
@@ -26,7 +26,7 @@ fi
extVer=`bash $curPath/lib.sh $version`
extFile=/usr/lib/php/${extVer}/${LIBNAME}.so
if [ "$sysName" == "Darwin" ];then
if [ "$sysName" = "Darwin" ];then
BAK='_bak'
else
BAK=''
@@ -92,8 +92,8 @@ Uninstall_lib()
}
if [ "$actionType" == 'install' ];then
if [ "$actionType" = 'install' ];then
Install_lib
elif [ "$actionType" == 'uninstall' ];then
elif [ "$actionType" = 'uninstall' ];then
Uninstall_lib
fi
+1 -1
View File
@@ -37,7 +37,7 @@ if [ "$actionType" = 'install' ];then
fi
echo $ext_file
if [ "$version" == "8.5" ];then
if [ "$version" = "8.5" ];then
echo "no zend_extension"
else
echo "zend_extension=${LIBNAME}.so" >> $ext_file
+3 -3
View File
@@ -24,7 +24,7 @@ extFile=/usr/lib/php/${extVer}/${_LIBNAME}.so
if [ "$sysName" == "Darwin" ];then
if [ "$sysName" = "Darwin" ];then
BAK='_bak'
else
BAK=''
@@ -90,8 +90,8 @@ Uninstall_lib()
}
if [ "$actionType" == 'install' ];then
if [ "$actionType" = 'install' ];then
Install_lib
elif [ "$actionType" == 'uninstall' ];then
elif [ "$actionType" = 'uninstall' ];then
Uninstall_lib
fi
+3 -3
View File
@@ -9,7 +9,7 @@ cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}')
cd $DIR && /bin/bash install.sh install $PHP_VER
for ii in $cmd_ext
do
if [ "install.sh" == "$ii" ];then
if [ "install.sh" = "$ii" ];then
echo '' > /tmp/t.log
else
cd $DIR/versions/$PHP_VER && /bin/bash $ii install $PHP_VER
@@ -18,7 +18,7 @@ done
echo "php${PHP_VER} -- end"
PHP_VER_LIST=(53 54 55 56 70 71 72 73 74 80 81 82 83)
PHP_VER_LIST=(53 54 55 56 70 71 72 73 74 80 81 82 83 84 85)
# PHP_VER_LIST=(81)
for PHP_VER in ${PHP_VER_LIST[@]}; do
echo "php${PHP_VER} -- start"
@@ -27,7 +27,7 @@ for PHP_VER in ${PHP_VER_LIST[@]}; do
for ii in $cmd_ext
do
echo "${ii}"
if [ "install.sh" == "$ii" ];then
if [ "install.sh" = "$ii" ];then
echo '' > /tmp/t.log
else
cd $DIR/versions/$PHP_VER/ && bash $ii install ${PHP_VER}
+1 -1
View File
@@ -57,7 +57,7 @@ fi
if [ "${action}" == "uninstall" ] && [ -d ${serverPath}/php-yum/${type} ];then
if [ "${action}" = "uninstall" ] && [ -d ${serverPath}/php-yum/${type} ];then
#初始化
cd ${rootPath} && python3 ${rootPath}/plugins/php-yum/index.py stop ${type}
cd ${rootPath} && python3 ${rootPath}/plugins/php-yum/index.py initd_uninstall ${type}
+2 -2
View File
@@ -17,7 +17,7 @@ Install_php()
{
#------------------------ install start ------------------------------------#
yum install -y php83 php83-php-fpm
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
mkdir -p $serverPath/php-yum/${PHP_VER}
fi
@@ -32,7 +32,7 @@ Uninstall_php()
}
action=${1}
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_php
else
Uninstall_php
@@ -24,7 +24,7 @@ extSoFile=$extFile/modules/${LIBNAME}.so
cfgDir=/etc/opt/remi/php${version}/php.d
extIni=${cfgDir}/10-${LIBNAME}.ini
if [ "$sysName" == "Darwin" ];then
if [ "$sysName" = "Darwin" ];then
BAK='_bak'
else
BAK=''
+1 -1
View File
@@ -48,7 +48,7 @@ if [ "$actionType" = 'install' ];then
echo "opcache.jit_buffer_size=64M" >> $ext_file
echo "opcache.save_comments=0" >> $ext_file
echo "opcache.blacklist_filename=${OP_BL}" >> $ext_file
elif [ "$actionType" == 'uninstall' ];then
elif [ "$actionType" = 'uninstall' ];then
if [ -f ${ext_dir}/10-opcache.ini.rpmsave ];then
ext_file=${ext_dir}/10-opcache.ini.rpmsave
fi
+1 -1
View File
@@ -83,7 +83,7 @@ Install_lib()
exit
fi
if [ "$OSNAME" == 'macos' ];then
if [ "$OSNAME" = 'macos' ];then
xattr -c * $extSoFile
fi
fi
+1 -1
View File
@@ -39,7 +39,7 @@ fi
# exit 0
# fi
if [ "${action}" == "uninstall" ];then
if [ "${action}" = "uninstall" ];then
if [ -f /usr/lib/systemd/system/php${type}.service ] || [ -f /lib/systemd/system/php${type}.service ] ;then
systemctl stop php${type}
+3 -3
View File
@@ -31,7 +31,7 @@ fi
sysName=`uname`
echo "use system: ${sysName}"
if [ ${sysName} == "Darwin" ]; then
if [ ${sysName} = "Darwin" ]; then
OSNAME='macos'
elif grep -Eqi "CentOS" /etc/issue || grep -Eq "CentOS" /etc/*-release; then
OSNAME='centos'
@@ -130,8 +130,8 @@ Uninstall_lib()
if [ "$actionType" == 'install' ];then
if [ "$actionType" = 'install' ];then
Install_lib
elif [ "$actionType" == 'uninstall' ];then
elif [ "$actionType" = 'uninstall' ];then
Uninstall_lib
fi
+3 -3
View File
@@ -98,7 +98,7 @@ 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
@@ -106,7 +106,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/}
@@ -159,7 +159,7 @@ Uninstall_php()
}
action=${1}
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_php
else
Uninstall_php
+3 -3
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=''
@@ -95,8 +95,8 @@ Uninstall_lib()
if [ "$actionType" == 'install' ];then
if [ "$actionType" = 'install' ];then
Install_lib
elif [ "$actionType" == 'uninstall' ];then
elif [ "$actionType" = 'uninstall' ];then
Uninstall_lib
fi
+4 -4
View File
@@ -23,7 +23,7 @@ OSNAME=`cat ${rootPath}/data/osname.pl`
OSNAME_ID=`cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | awk -F "\"" '{print $2}'`
if [ "centos" == "$OSNAME" ]; then
if [ "centos" = "$OSNAME" ]; then
if [ "$OSNAME_ID" != "9" ];then
if [ "$version" -lt "74" ];then
bash $curPath/gd_old.sh $1 $2
@@ -47,7 +47,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=''
@@ -128,8 +128,8 @@ Uninstall_lib()
if [ "$actionType" == 'install' ];then
if [ "$actionType" = 'install' ];then
Install_lib
elif [ "$actionType" == 'uninstall' ];then
elif [ "$actionType" = 'uninstall' ];then
Uninstall_lib
fi
+6 -6
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,11 +50,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-gettext=$(brew --prefix gettext)"
fi
@@ -64,7 +64,7 @@ Install_lib()
# PHP52需要,因为52关闭。所有注释掉
# 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
@@ -115,8 +115,8 @@ Uninstall_lib()
if [ "$actionType" == 'install' ];then
if [ "$actionType" = 'install' ];then
Install_lib
elif [ "$actionType" == 'uninstall' ];then
elif [ "$actionType" = 'uninstall' ];then
Uninstall_lib
fi
+3 -3
View File
@@ -34,7 +34,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=''
@@ -61,11 +61,11 @@ Install_lib()
./configure --with-php-config=$serverPath/php/$version/bin/php-config
# 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
if [ "$sysName" == "Darwin" ];then
if [ "$sysName" = "Darwin" ];then
OPTIONS="$OPTIONS --with-gmp=$(brew --prefix gmp)"
fi
+4 -4
View File
@@ -27,7 +27,7 @@ if [ "$version" -gt "82" ];then
fi
DEFAULT_ARCH='x86-64'
if [ "$ARCH" == "aarch64" ];then
if [ "$ARCH" = "aarch64" ];then
DEFAULT_ARCH='aarch64'
fi
@@ -39,7 +39,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=''
@@ -116,8 +116,8 @@ Uninstall_lib()
}
if [ "$actionType" == 'install' ];then
if [ "$actionType" = 'install' ];then
Install_lib
elif [ "$actionType" == 'uninstall' ];then
elif [ "$actionType" = 'uninstall' ];then
Uninstall_lib
fi
+5 -5
View File
@@ -37,7 +37,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=''
@@ -67,11 +67,11 @@ 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
if [ "$sysName" == "Darwin" ];then
if [ "$sysName" = "Darwin" ];then
BREW_DIR=`which brew`
BREW_DIR=${BREW_DIR/\/bin\/brew/}
@@ -126,8 +126,8 @@ Uninstall_lib()
}
if [ "$actionType" == 'install' ];then
if [ "$actionType" = 'install' ];then
Install_lib
elif [ "$actionType" == 'uninstall' ];then
elif [ "$actionType" = 'uninstall' ];then
Uninstall_lib
fi
+4 -4
View File
@@ -22,7 +22,7 @@ if [ "$version" -lt "70" ];then
fi
if [ "$version" == "85" ];then
if [ "$version" = "85" ];then
LIBV=3.4.0
fi
@@ -35,7 +35,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=''
@@ -130,8 +130,8 @@ Uninstall_lib()
}
if [ "$actionType" == 'install' ];then
if [ "$actionType" = 'install' ];then
Install_lib
elif [ "$actionType" == 'uninstall' ];then
elif [ "$actionType" = 'uninstall' ];then
Uninstall_lib
fi
+3 -3
View File
@@ -31,7 +31,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=''
@@ -112,8 +112,8 @@ Uninstall_lib()
}
if [ "$actionType" == 'install' ];then
if [ "$actionType" = 'install' ];then
Install_lib
elif [ "$actionType" == 'uninstall' ];then
elif [ "$actionType" = 'uninstall' ];then
Uninstall_lib
fi
+1 -1
View File
@@ -50,7 +50,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=''
+3 -3
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=''
@@ -88,8 +88,8 @@ Uninstall_lib()
if [ "$actionType" == 'install' ];then
if [ "$actionType" = 'install' ];then
Install_lib
elif [ "$actionType" == 'uninstall' ];then
elif [ "$actionType" = 'uninstall' ];then
Uninstall_lib
fi
+3 -3
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=''
@@ -170,8 +170,8 @@ Uninstall_lib()
if [ "$actionType" == 'install' ];then
if [ "$actionType" = 'install' ];then
Install_lib
elif [ "$actionType" == 'uninstall' ];then
elif [ "$actionType" = 'uninstall' ];then
Uninstall_lib
fi
+2 -2
View File
@@ -113,8 +113,8 @@ Uninstall_lib()
if [ "$actionType" == 'install' ];then
if [ "$actionType" = 'install' ];then
Install_lib
elif [ "$actionType" == 'uninstall' ];then
elif [ "$actionType" = 'uninstall' ];then
Uninstall_lib
fi
+3 -3
View File
@@ -29,7 +29,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=''
@@ -120,8 +120,8 @@ Uninstall_lib()
if [ "$actionType" == 'install' ];then
if [ "$actionType" = 'install' ];then
Install_lib
elif [ "$actionType" == 'uninstall' ];then
elif [ "$actionType" = 'uninstall' ];then
Uninstall_lib
fi
+3 -3
View File
@@ -43,7 +43,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=''
@@ -121,8 +121,8 @@ Uninstall_lib()
}
if [ "$actionType" == 'install' ];then
if [ "$actionType" = 'install' ];then
Install_lib
elif [ "$actionType" == 'uninstall' ];then
elif [ "$actionType" = 'uninstall' ];then
Uninstall_lib
fi
+2 -2
View File
@@ -112,8 +112,8 @@ Uninstall_lib()
}
if [ "$actionType" == 'install' ];then
if [ "$actionType" = 'install' ];then
Install_lib
elif [ "$actionType" == 'uninstall' ];then
elif [ "$actionType" = 'uninstall' ];then
Uninstall_lib
fi
+3 -3
View File
@@ -32,7 +32,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=''
@@ -106,8 +106,8 @@ Uninstall_lib()
}
if [ "$actionType" == 'install' ];then
if [ "$actionType" = 'install' ];then
Install_lib
elif [ "$actionType" == 'uninstall' ];then
elif [ "$actionType" = 'uninstall' ];then
Uninstall_lib
fi
+4 -4
View File
@@ -35,7 +35,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=''
@@ -63,7 +63,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
@@ -114,8 +114,8 @@ Uninstall_lib()
}
if [ "$actionType" == 'install' ];then
if [ "$actionType" = 'install' ];then
Install_lib
elif [ "$actionType" == 'uninstall' ];then
elif [ "$actionType" = 'uninstall' ];then
Uninstall_lib
fi
+1 -1
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=''
+3 -3
View File
@@ -30,7 +30,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=''
@@ -112,8 +112,8 @@ Uninstall_lib()
}
if [ "$actionType" == 'install' ];then
if [ "$actionType" = 'install' ];then
Install_lib
elif [ "$actionType" == 'uninstall' ];then
elif [ "$actionType" = 'uninstall' ];then
Uninstall_lib
fi

Some files were not shown because too many files have changed in this diff Show More