From 59258f3736221164d0ab03820cd00c0fc7a3d77b Mon Sep 17 00:00:00 2001 From: yoyo Date: Wed, 3 Dec 2025 18:44:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=8D=A2=E5=9F=9F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index d55825b..9437e40 100755 --- a/install.sh +++ b/install.sh @@ -2,8 +2,8 @@ # ============================================ # LinkMaster 节点端一键安装脚本 -# 使用方法: curl -fsSL https://gitee.cpolar.top/yoyo/linkmaster-node/raw/branch/main/install.sh | bash -s -- <后端地址> -# 示例: curl -fsSL https://gitee.cpolar.top/yoyo/linkmaster-node/raw/branch/main/install.sh | bash -s -- http://192.168.1.100:8080 +# 使用方法: curl -fsSL https://gitee.nas.cpolar.top/yoyo/linkmaster-node/raw/branch/main/install.sh | bash -s -- <后端地址> +# 示例: curl -fsSL https://gitee.nas.cpolar.top/yoyo/linkmaster-node/raw/branch/main/install.sh | bash -s -- http://192.168.1.100:8080 # ============================================ set -e @@ -36,7 +36,7 @@ BACKEND_URL="${1:-}" if [ -z "$BACKEND_URL" ]; then echo -e "${RED}错误: 请提供后端服务器地址${NC}" echo -e "${YELLOW}使用方法:${NC}" - echo " curl -fsSL https://gitee.cpolar.top/${GITHUB_REPO}/raw/branch/${GITHUB_BRANCH}/install.sh | bash -s -- http://your-backend-server:8080" + echo " curl -fsSL https://gitee.nas.cpolar.top/${GITHUB_REPO}/raw/branch/${GITHUB_BRANCH}/install.sh | bash -s -- http://your-backend-server:8080" echo "" echo -e "${YELLOW}注意:${NC}" echo " - 节点端需要直接连接后端服务器,不是前端地址" @@ -565,7 +565,7 @@ show_build_alternatives() { echo -e "${YELLOW}═══════════════════════════════════════════════════════════${NC}" echo "" echo -e "${GREEN}手动编译安装:${NC}" - echo " git clone https://gitee.cpolar.top/${GITHUB_REPO}.git ${SOURCE_DIR}" + echo " git clone https://gitee.nas.cpolar.top/${GITHUB_REPO}.git ${SOURCE_DIR}" echo " cd ${SOURCE_DIR}" echo " go build -o agent ./cmd/agent" echo " sudo cp agent /usr/local/bin/linkmaster-node" @@ -696,9 +696,9 @@ build_from_source() { # 克隆仓库到源码目录 echo -e "${BLUE}克隆仓库到 ${SOURCE_DIR}...${NC}" - if ! sudo git clone --branch "${GITHUB_BRANCH}" "https://gitee.cpolar.top/${GITHUB_REPO}.git" "$SOURCE_DIR" 2>&1; then + if ! sudo git clone --branch "${GITHUB_BRANCH}" "https://gitee.nas.cpolar.top/${GITHUB_REPO}.git" "$SOURCE_DIR" 2>&1; then echo -e "${RED}克隆仓库失败,请检查网络连接和仓库地址${NC}" - echo -e "${YELLOW}仓库地址: https://gitee.cpolar.top/${GITHUB_REPO}.git${NC}" + echo -e "${YELLOW}仓库地址: https://gitee.nas.cpolar.top/${GITHUB_REPO}.git${NC}" show_build_alternatives exit 1 fi