Merge pull request #899 from midoks/dev

常规更新
This commit is contained in:
Mr Chen 2026-06-01 19:10:03 +08:00 committed by GitHub
commit 2fe17aefd9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 26 additions and 8 deletions

View File

@ -25,14 +25,25 @@ sysName=$(uname | tr '[:upper:]' '[:lower:]')
ARCH=amd64
get_arch() {
echo "package main
import (
\"fmt\"
\"runtime\"
)
func main() { fmt.Println(runtime.GOARCH) }" > /tmp/go_arch.go
ARCH=$(go run /tmp/go_arch.go)
# 使用 bash 来识别架构
local arch=$(uname -m)
case $arch in
x86_64|amd64)
ARCH=amd64
;;
aarch64|arm64)
ARCH=arm64
;;
armv7l|armv7)
ARCH=armv7
;;
i686|i386)
ARCH=386
;;
*)
ARCH=amd64
;;
esac
echo "ARCH:${ARCH}"
}

View File

@ -23,6 +23,7 @@ yum install -y sshpass
yum install -y libzstd-devel
yum install -y postgresql-devel
yum install -y brotli-devel
yum install -y vim-common
SSH_PORT=`netstat -ntpl|grep sshd|grep -v grep | sed -n "1,1p" | awk '{print $4}' | awk -F : '{print $2}'`
if [ "$SSH_PORT" == "" ];then

View File

@ -30,6 +30,7 @@ yum install -y numactl
yum install -y sshpass
yum install -y libzstd-devel
yum install -y brotli-devel
yum install -y vim-common
SSH_PORT=`netstat -ntpl|grep sshd|grep -v grep | sed -n "1,1p" | awk '{print $4}' | awk -F : '{print $2}'`
if [ "$SSH_PORT" == "" ];then

View File

@ -41,6 +41,7 @@ yum install -y sshpass
yum install -y libzstd-devel
yum install -y postgresql-devel
yum install -y brotli-devel
yum install -y vim-common
# if [ -f /usr/sbin/iptables ];then

View File

@ -41,6 +41,7 @@ yum install -y sshpass
yum install -y libzstd-devel
yum install -y postgresql-devel
yum install -y brotli-devel
yum install -y vim-common
# if [ -f /usr/sbin/iptables ];then

View File

@ -21,6 +21,7 @@ yum install -y sshpass
yum install -y libzstd-devel
yum install -y postgresql-devel
yum install -y brotli-devel
yum install -y vim-common
dnf install crontabs -y
SSH_PORT=`netstat -ntpl|grep sshd|grep -v grep | sed -n "1,1p" | awk '{print $4}' | awk -F : '{print $2}'`

View File

@ -47,6 +47,7 @@ $PKGMGR install -y sshpass
$PKGMGR install -y libzstd-devel
$PKGMGR install -y postgresql-devel
$PKGMGR install -y brotli-devel
$PKGMGR install -y vim-common
echo "install remi source"
if [ "$VERSION_ID" == "9" ];then

View File

@ -31,6 +31,7 @@ yum install -y sshpass
yum install -y libzstd-devel
yum install -y postgresql-devel
yum install -y brotli-devel
yum install -y vim-common
if [ -f /usr/sbin/iptables ];then