This commit is contained in:
dami
2026-09-11 20:47:27 +08:00
parent 44600b5657
commit aa317ee2f5
22 changed files with 61 additions and 61 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ elif [ "$sysArch" = "aarch64" ]; then
fi
ALIST_NAME=linux
if [ "$sysName" == "Darwin" ];then
if [ "$sysName" = "Darwin" ];then
ALIST_NAME=darwin
fi
+1 -1
View File
@@ -26,7 +26,7 @@ Uninstall_App()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_App
else
Uninstall_App
+1 -1
View File
@@ -78,7 +78,7 @@ Uninstall_App()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_App
else
Uninstall_App
+5 -5
View File
@@ -31,7 +31,7 @@ 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=''
@@ -41,7 +41,7 @@ Install_lib()
{
bash ${rootPath}/scripts/getos.sh
OSNAME=`cat ${rootPath}/data/osname.pl`
if [ "$OSNAME" == 'macos' ];then
if [ "$OSNAME" = 'macos' ];then
VERSION_ID=none
else
VERSION_ID=`cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | awk -F "\"" '{print $2}'`
@@ -51,7 +51,7 @@ Install_lib()
DEFAULT_OSNAME=linux-x86_64
SUFFIX_NAME=lin
if [ "$OSNAME" == 'macos' ];then
if [ "$OSNAME" = 'macos' ];then
DEFAULT_OSNAME=macosx
SUFFIX_NAME=dar
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
@@ -21,7 +21,7 @@ if [ -f ${rootPath}/bin/activate ];then
fi
if [ "${2}" == "" ];then
if [ "${2}" = "" ];then
echo '缺少安装脚本...'
exit 0
fi
@@ -31,7 +31,7 @@ if [ ! -d $curPath/versions/$VERSION ];then
exit 0
fi
if [ "${action}" == "uninstall" ];then
if [ "${action}" = "uninstall" ];then
if [ -f /usr/lib/systemd/system/postgresql.service ] || [ -f /lib/systemd/system/postgresql.service ];then
systemctl stop postgresql
systemctl disable postgresql
@@ -43,7 +43,7 @@ fi
sh -x $curPath/versions/$VERSION/install.sh $1
if [ "${action}" == "install" ] && [ -d $serverPath/postgresql ];then
if [ "${action}" = "install" ] && [ -d $serverPath/postgresql ];then
#初始化
cd ${rootPath} && python3 ${rootPath}/plugins/postgresql/index.py start ${type}
cd ${rootPath} && python3 ${rootPath}/plugins/postgresql/index.py initd_install ${type}
+1 -1
View File
@@ -121,7 +121,7 @@ Uninstall_App()
}
action=$1
if [ "${1}" == "install" ];then
if [ "${1}" = "install" ];then
Install_App
else
Uninstall_App
+1 -1
View File
@@ -121,7 +121,7 @@ Uninstall_App()
}
action=$1
if [ "${1}" == "install" ];then
if [ "${1}" = "install" ];then
Install_App
else
Uninstall_App
+1 -1
View File
@@ -121,7 +121,7 @@ Uninstall_App()
}
action=$1
if [ "${1}" == "install" ];then
if [ "${1}" = "install" ];then
Install_App
else
Uninstall_App
+1 -1
View File
@@ -121,7 +121,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
@@ -78,7 +78,7 @@ Uninstall_App()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_App
else
Uninstall_App
+4 -4
View File
@@ -35,13 +35,13 @@ Install_rsyncd()
echo '正在安装脚本文件...'
if [ "$OSNAME" == "debian" ] || [ "$OSNAME" == "ubuntu" ];then
if [ "$OSNAME" = "debian" ] || [ "$OSNAME" = "ubuntu" ];then
apt install -y rsync
apt install -y lsyncd
elif [[ "$OSNAME" == "arch" ]]; then
elif [[ "$OSNAME" = "arch" ]]; then
echo y | pacman -Sy rsync
echo y | pacman -Sy lsyncd
elif [[ "$OSNAME" == "macos" ]]; then
elif [[ "$OSNAME" = "macos" ]]; then
# brew install rsync
# brew install lsyncd
echo "ok"
@@ -87,7 +87,7 @@ Uninstall_rsyncd()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_rsyncd
else
Uninstall_rsyncd
+3 -3
View File
@@ -21,13 +21,13 @@ Install_App()
mkdir -p $serverPath/source/simpleping
name=linux
if [ "$sysName" == "Darwin" ];then
if [ "$sysName" = "Darwin" ];then
name="darwin"
else
sysctl -w net.ipv4.ping_group_range="0 2147483647"
fi
if [ "$ARCH" == "x86_64" ];then
if [ "$ARCH" = "x86_64" ];then
ARCH="amd64"
fi
@@ -78,7 +78,7 @@ Uninstall_App()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_App
else
Uninstall_App
+21 -21
View File
@@ -43,47 +43,47 @@ VERSION=$2
# echo $VERSION
if [ "$VERSION" == "3.1.1" ];then
if [ "$VERSION" = "3.1.1" ];then
if [ "$sysArch" != "x86_64" ];then
echo "no support"
exit 1
fi
VERSION_NUM=${VERSION}-612d99f
elif [ "$VERSION" == "3.2.1" ]; then
elif [ "$VERSION" = "3.2.1" ]; then
if [ "$sysArch" != "x86_64" ];then
echo "no support"
exit 1
fi
VERSION_NUM=${VERSION}-f152e0b
elif [ "$VERSION" == "3.3.1" ]; then
elif [ "$VERSION" = "3.3.1" ]; then
if [ "$sysArch" != "x86_64" ];then
echo "no support"
exit 1
fi
VERSION_NUM=${VERSION}-b72d67b
elif [ "$VERSION" == "3.4.1" ]; then
elif [ "$VERSION" = "3.4.1" ]; then
if [ "$sysArch" != "x86_64" ];then
echo "no support"
exit 1
fi
VERSION_NUM=${VERSION}-efbcc65
elif [ "$VERSION" == "3.5.1" ]; then
elif [ "$VERSION" = "3.5.1" ]; then
if [ "$sysArch" != "x86_64" ];then
echo "no support"
exit 1
fi
VERSION_NUM=${VERSION}-82c60cb
elif [ "$VERSION" == "3.6.1" ]; then
elif [ "$VERSION" = "3.6.1" ]; then
if [ "$sysArch" != "x86_64" ];then
echo "no support"
exit 1
fi
VERSION_NUM=${VERSION}-c9dbeda
elif [ "$VERSION" == "3.7.1" ]; then
elif [ "$VERSION" = "3.7.1" ]; then
VERSION_NUM=${VERSION}-da9f8a4
elif [ "$VERSION" == "3.8.1" ]; then
elif [ "$VERSION" = "3.8.1" ]; then
VERSION_NUM=${VERSION}-d25e0bb
elif [ "$VERSION" == "3.9.1" ]; then
elif [ "$VERSION" = "3.9.1" ]; then
VERSION_NUM=${VERSION}-141d2ea
fi
@@ -98,33 +98,33 @@ Install_sphinx()
mkdir -p $SPHINX_DIR
SPH_NAME=amd64
if [ "$sysArch" == "arm64" ];then
if [ "$sysArch" = "arm64" ];then
SPH_NAME=amd64
elif [ "$sysArch" == "x86_64" ]; then
elif [ "$sysArch" = "x86_64" ]; then
SPH_NAME=amd64
elif [ "$sysArch" == "aarch64" ]; then
elif [ "$sysArch" = "aarch64" ]; then
SPH_NAME=aarch64
fi
if [ "$sysName" == "Darwin" ] && [ "$VERSION" == "3.7.1" ];then
if [ "$sysName" = "Darwin" ] && [ "$VERSION" = "3.7.1" ];then
SPH_NAME=aarch64
fi
SPH_SYSNAME=linux
if [ $sysName == 'Darwin' ]; then
if [ $sysName = 'Darwin' ]; then
SPH_SYSNAME=darwin
elif [ "$sysName" == "aarch64" ]; then
elif [ "$sysName" = "aarch64" ]; then
SPH_NAME=aarch64
elif [ "$sysName" == "freebsd" ]; then
elif [ "$sysName" = "freebsd" ]; then
SPH_NAME=freebsd
fi
if [ "$SPH_SYSNAME" == "linux" ];then
if [ "$SPH_SYSNAME" = "linux" ];then
glibc_ver=`ldd --version | grep libc | awk -F ')' '{print $2}'|awk '{gsub(/^\s+|\s+$/, "");print}'`
if [ "$VERSION" == "3.7.1" ] && [ `echo "2.29 > $glibc_ver " | bc` -eq 1 ];then
if [ "$VERSION" = "3.7.1" ] && [ `echo "2.29 > $glibc_ver " | bc` -eq 1 ];then
SPH_NAME=${SPH_NAME}-glibc2.17
fi
if [ "$VERSION" == "3.6.1" ] && [ `echo "2.29 > $glibc_ver " | bc` -eq 1 ];then
if [ "$VERSION" = "3.6.1" ] && [ `echo "2.29 > $glibc_ver " | bc` -eq 1 ];then
SPH_NAME=${SPH_NAME}-glibc2.17
fi
fi
@@ -141,7 +141,7 @@ Install_sphinx()
cd ${SPHINX_DIR} && tar -zxvf ${FILE_TGZ}
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
mkdir -p $serverPath/sphinx/bin
cp -rf ${SPHINX_DIR}/sphinx-${VERSION}/* $serverPath/sphinx/bin
fi
@@ -190,7 +190,7 @@ Uninstall_sphinx()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_sphinx
else
Uninstall_sphinx
+3 -3
View File
@@ -34,9 +34,9 @@ Install_app()
mkdir -p $serverPath/supervisor/run
echo 'supervisor install...'
if [ "centos" == "$OSNAME" ] || [ "fedora" == "$OSNAME" ];then
if [ "centos" = "$OSNAME" ] || [ "fedora" = "$OSNAME" ];then
pip install supervisor
elif [ "ubuntu" == "$OSNAME" ] || [ "debian" == "$OSNAME" ] ;then
elif [ "ubuntu" = "$OSNAME" ] || [ "debian" = "$OSNAME" ] ;then
pip install supervisor
else
pip install supervisor
@@ -70,7 +70,7 @@ Uninstall_app()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_app
else
Uninstall_app
+2 -2
View File
@@ -23,7 +23,7 @@ Install_swap()
mkdir -p $serverPath/swap
echo "${VERSION}" > $serverPath/swap/version.pl
if [ "$sysName" == "Darwin" ];then
if [ "$sysName" = "Darwin" ];then
pass
else
dd if=/dev/zero of=$serverPath/swap/swapfile bs=1M count=1024
@@ -61,7 +61,7 @@ Uninstall_swap()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_swap
else
Uninstall_swap
+1 -1
View File
@@ -24,7 +24,7 @@ Uninstall_sysopt()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_sysopt
else
Uninstall_sysopt
+1 -1
View File
@@ -47,7 +47,7 @@ Uninstall_App()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_App
else
Uninstall_App
+1 -1
View File
@@ -49,7 +49,7 @@ Uninstall_App()
}
action=$1
if [ "${1}" == 'install' ];then
if [ "${1}" = 'install' ];then
Install_App
else
Uninstall_App
+1 -1
View File
@@ -36,7 +36,7 @@ Install_App()
cd $VALKEY_DIR && tar -zxvf ${FILE_TGZ}
CMD_MAKE=`which gmake`
if [ "$?" == "0" ];then
if [ "$?" = "0" ];then
cd valkey-${VERSION} && gmake PREFIX=$serverPath/valkey install
else
cd valkey-${VERSION} && make PREFIX=$serverPath/valkey install
+1 -1
View File
@@ -28,7 +28,7 @@ Install_varnish()
apt install varnish -y
elif [[ "$OSNAME" = "arch" ]]; then
echo y | pacman -Sy varnish
elif [ "${OSNAME}" == "opensuse" ];then
elif [ "${OSNAME}" = "opensuse" ];then
zypper install -y varnish
else
echo "I won't support it"
+3 -3
View File
@@ -18,7 +18,7 @@ sys_os=`uname`
HTTP_PREFIX="https://"
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
HTTP_PREFIX="https://"
fi
@@ -29,7 +29,7 @@ if [ "$LOCAL_ADDR" != "common" ];then
fi
if [ "$sys_os" == "Darwin" ];then
if [ "$sys_os" = "Darwin" ];then
BAK='_bak'
else
BAK=''
@@ -120,7 +120,7 @@ Install_App()
# 缓存数据
GEO_VERSION=$(get_latest_release "P3TERX/GeoLite.mmdb")
if [ ! -f $serverPath/source/webstats/GeoLite2-City.mmdb ];then
if [ "$LOCAL_ADDR" == "cn" ];then
if [ "$LOCAL_ADDR" = "cn" ];then
wget --no-check-certificate -O $serverPath/source/webstats/GeoLite2-City.mmdb https://dl.midoks.icu/soft/webstats/GeoLite2-City.mmdb
else
wget --no-check-certificate -O $serverPath/source/webstats/GeoLite2-City.mmdb https://github.com/P3TERX/GeoLite.mmdb/releases/download/${GEO_VERSION}/GeoLite2-City.mmdb
+2 -2
View File
@@ -84,7 +84,7 @@ Install_App()
export PATH=$PATH:$serverPath/webstats/luarocks/bin
if [ ! -f $serverPath/webstats/lua/lsqlite3.so ];then
if [ "${sys_os}" == "Darwin" ];then
if [ "${sys_os}" = "Darwin" ];then
cd $serverPath/source/webstats/lsqlite3_v096
# SQLITE_DIR=/usr/local/Cellar/sqlite/3.36.0
BREW_DIR=`which brew`
@@ -119,7 +119,7 @@ Install_App()
# 缓存数据
GEO_VERSION=$(get_latest_release "P3TERX/GeoLite.mmdb")
if [ ! -s $serverPath/source/webstats/GeoLite2-City.mmdb ];then
if [ "$LOCAL_ADDR" == "cn" ];then
if [ "$LOCAL_ADDR" = "cn" ];then
wget --no-check-certificate -O $serverPath/source/webstats/GeoLite2-City.mmdb https://dl.midoks.icu/soft/webstats/GeoLite2-City.mmdb
else
wget --no-check-certificate -O $serverPath/source/webstats/GeoLite2-City.mmdb https://github.com/P3TERX/GeoLite.mmdb/releases/download/${GEO_VERSION}/GeoLite2-City.mmdb