更换域名

This commit is contained in:
2025-12-03 18:44:52 +08:00
parent 32a6a74851
commit 59258f3736

View File

@@ -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