From 1df20ae2ef86d17bd5f6d1ad758cb148c49930e0 Mon Sep 17 00:00:00 2001 From: gaofei Date: Fri, 30 Aug 2024 11:11:40 +0800 Subject: [PATCH] update server --- quick_server.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/quick_server.sh b/quick_server.sh index f149548..e4800a1 100755 --- a/quick_server.sh +++ b/quick_server.sh @@ -14,6 +14,9 @@ if [[ -z $DEPLOY_DOMAIN ]]; then exit 1 fi +caddy_download_url="https://gitee.com/xxoommd/magic/releases/download/v0.1/caddy-linux-amd64" +hysteria_download_url="https://gitee.com/xxoommd/magic/releases/download/v0.1/hysteria-linxu-amd64-avx" + function is_valid_domain() { local str="$1" @@ -49,8 +52,8 @@ HY_CONFIG_FILE="${WORKING_DIR}/hy-config.yaml" CADDY_CONFIG_FILE="${WORKING_DIR}/Caddyfile" echo -e "[INFO] Download ${GREEN}hysteria${NC} and ${GREEN}caddy${NC} ..." -curl -L -o /usr/local/bin/hysteria https://github.com/xxoommd/ultimate_collection/releases/download/latest/hysteria && - curl -L -o /usr/local/bin/caddy https://github.com/xxoommd/ultimate_collection/releases/download/latest/caddy && +curl -L -o /usr/local/bin/hysteria $hysteria_download_url && + curl -L -o /usr/local/bin/caddy $caddy_download_url && chmod +x /usr/local/bin/hysteria /usr/local/bin/caddy echo -e "[INFO] Download Done\n"