From efcc19e9147ea0bee500140b56f9b073778efc12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Mon, 9 Mar 2026 17:57:47 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=B0=86=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E9=93=BE=E6=8E=A5=E4=B8=AD=E7=9A=84=E5=88=86?= =?UTF-8?q?=E6=94=AF=E4=BB=8E=20main=20=E6=9B=B4=E6=96=B0=E4=B8=BA=202026?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1.sh | 4 ++-- alpine/upgrade.sh | 2 +- database-dump-via-docker-sock.sh | 4 ++-- debian/upgrade.sh | 2 +- upgrade.sh | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/1.sh b/1.sh index 88e53ee..977b92b 100644 --- a/1.sh +++ b/1.sh @@ -3,8 +3,8 @@ # ... # # 使用方法: -# URL="https://git.1-h.cc/Scripts/Linux/raw/branch/main/1.sh"; curl -fsSL "$URL" | bash -# URL="https://git.1-h.cc/Scripts/Linux/raw/branch/main/1.sh"; wget -q -O - "$URL" | bash +# URL="https://git.1-h.cc/Scripts/Linux/raw/branch/2026/1.sh"; curl -fsSL "$URL" | bash +# URL="https://git.1-h.cc/Scripts/Linux/raw/branch/2026/1.sh"; wget -q -O - "$URL" | bash set -e # 遇到错误即退出 trap 'echo "Error on line $LINENO"' ERR diff --git a/alpine/upgrade.sh b/alpine/upgrade.sh index d18255b..928bcfd 100644 --- a/alpine/upgrade.sh +++ b/alpine/upgrade.sh @@ -4,7 +4,7 @@ # 功能:更新软件包、清理缓存、检查服务状态 # # 使用方法: -# URL="https://git.1-h.cc/Scripts/Linux/raw/branch/main/alpine/upgrade.sh"; wget -q -O - "$URL" | bash +# URL="https://git.1-h.cc/Scripts/Linux/raw/branch/2026/alpine/upgrade.sh"; wget -q -O - "$URL" | bash cat < /etc/apk/repositories http://dl-cdn.alpinelinux.org/alpine/latest-stable/main diff --git a/database-dump-via-docker-sock.sh b/database-dump-via-docker-sock.sh index 795e460..3d4a685 100755 --- a/database-dump-via-docker-sock.sh +++ b/database-dump-via-docker-sock.sh @@ -101,7 +101,7 @@ docker_exec() { set -- "$@" --shell="$EXEC_SHELL" fi - curl -fsSL "https://Git.1-H.CC/Scripts/Linux/raw/branch/main/docker-exec-via-sock.sh" | sh -s -- "$@" + curl -fsSL "https://git.1-h.cc/Scripts/Linux/raw/branch/2026/docker-exec-via-sock.sh" | sh -s -- "$@" } while [ "$#" -gt 0 ]; do @@ -305,7 +305,7 @@ printf '\n' >&2 log "数据库备份完成" log "正在调用远程清理脚本,前缀为 '$BACKUP_PREFIX',目录为 $BACKUP_DIR" -if ! curl -fsSL "https://Git.1-H.CC/Scripts/Linux/raw/branch/main/database-dump-cleanup.sh" | \ +if ! curl -fsSL "https://git.1-h.cc/Scripts/Linux/raw/branch/2026/database-dump-cleanup.sh" | \ sh -s -- --prefix="$BACKUP_PREFIX" --dir="$BACKUP_DIR"; then log "清理脚本失败" fi diff --git a/debian/upgrade.sh b/debian/upgrade.sh index caa37f4..0aac4a4 100644 --- a/debian/upgrade.sh +++ b/debian/upgrade.sh @@ -3,7 +3,7 @@ # ... # # 使用方法: -# URL="https://git.1-h.cc/Scripts/Linux/raw/branch/main/debian/upgrade.sh"; curl -fsSL "$URL" | bash +# URL="https://git.1-h.cc/Scripts/Linux/raw/branch/2026/debian/upgrade.sh"; curl -fsSL "$URL" | bash # 设置非交互式环境变量 export DEBIAN_FRONTEND=noninteractive diff --git a/upgrade.sh b/upgrade.sh index bdddf77..3e3973c 100644 --- a/upgrade.sh +++ b/upgrade.sh @@ -3,7 +3,7 @@ # ... # # 使用方法: -# URL="https://git.1-h.cc/Scripts/Linux/raw/branch/main/upgrade.sh"; curl -fsSL "$URL" | bash +# URL="https://git.1-h.cc/Scripts/Linux/raw/branch/2026/upgrade.sh"; curl -fsSL "$URL" | bash if [ -f /etc/debian_version ]; then SYSTEM_TYPE="debian"