mirror of
https://github.com/hotyue/IP-Sentinel.git
synced 2026-07-12 16:11:23 +08:00
chore(release): 预发布准备,对齐全链路网络仓库源至 main 分支,并同步全站版本号至 v4.2.2
This commit is contained in:
@@ -61,7 +61,7 @@ fi
|
|||||||
echo -e "======================================\n"
|
echo -e "======================================\n"
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
REPO_RAW_URL="https://raw.githubusercontent.com/hotyue/IP-Sentinel/feature/v4.2.0-dual-stack"
|
REPO_RAW_URL="https://raw.githubusercontent.com/hotyue/IP-Sentinel/main"
|
||||||
INSTALL_DIR="/opt/ip_sentinel"
|
INSTALL_DIR="/opt/ip_sentinel"
|
||||||
CONFIG_FILE="${INSTALL_DIR}/config.conf"
|
CONFIG_FILE="${INSTALL_DIR}/config.conf"
|
||||||
|
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ fi
|
|||||||
echo -e "======================================\n"
|
echo -e "======================================\n"
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
REPO_RAW_URL="https://raw.githubusercontent.com/hotyue/IP-Sentinel/feature/v4.2.0-dual-stack"
|
REPO_RAW_URL="https://raw.githubusercontent.com/hotyue/IP-Sentinel/main"
|
||||||
|
|
||||||
# [链路容灾] 双栈冗余防抖抓取,确立本地态势版本号
|
# [链路容灾] 双栈冗余防抖抓取,确立本地态势版本号
|
||||||
TARGET_VERSION=$( (curl -fsSL --connect-timeout 5 --retry 2 "${REPO_RAW_URL}/version.txt" || curl -4 -fsSL --connect-timeout 5 --retry 2 "${REPO_RAW_URL}/version.txt") 2>/dev/null | grep "^MASTER_VERSION=" | cut -d'=' -f2 | tr -d '[:space:]')
|
TARGET_VERSION=$( (curl -fsSL --connect-timeout 5 --retry 2 "${REPO_RAW_URL}/version.txt" || curl -4 -fsSL --connect-timeout 5 --retry 2 "${REPO_RAW_URL}/version.txt") 2>/dev/null | grep "^MASTER_VERSION=" | cut -d'=' -f2 | tr -d '[:space:]')
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ CONF="/opt/ip_sentinel_master/master.conf"
|
|||||||
[ ! -f "$CONF" ] && exit 1
|
[ ! -f "$CONF" ] && exit 1
|
||||||
source "$CONF"
|
source "$CONF"
|
||||||
|
|
||||||
REPO_RAW_URL="https://raw.githubusercontent.com/hotyue/IP-Sentinel/feature/v4.2.0-dual-stack"
|
REPO_RAW_URL="https://raw.githubusercontent.com/hotyue/IP-Sentinel/main"
|
||||||
MASTER_VERSION=${MASTER_VERSION:-"3.5.0"}
|
MASTER_VERSION=${MASTER_VERSION:-"3.5.0"}
|
||||||
|
|
||||||
OFFSET_FILE="${MASTER_DIR}/.tg_offset"
|
OFFSET_FILE="${MASTER_DIR}/.tg_offset"
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
MASTER_VERSION=4.1.7
|
MASTER_VERSION=4.2.2
|
||||||
AGENT_VERSION=4.1.6
|
AGENT_VERSION=4.2.2
|
||||||
|
|||||||
Reference in New Issue
Block a user