From 4b1f48790788b68495a6a857e1621f64dc23ba4b Mon Sep 17 00:00:00 2001 From: Erope Date: Sun, 11 Apr 2021 20:41:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=89=E8=A3=85=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/docker-compose.yaml | 2 +- script/install.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/script/docker-compose.yaml b/script/docker-compose.yaml index 856b02f..a7ec116 100644 --- a/script/docker-compose.yaml +++ b/script/docker-compose.yaml @@ -2,7 +2,7 @@ version: "3.3" services: dashboard: - image: ghcr.io/naiba/nezha-dashboard + image: image_url restart: always volumes: - ./data:/dashboard/data diff --git a/script/install.sh b/script/install.sh index aec2ab6..1e7bb41 100755 --- a/script/install.sh +++ b/script/install.sh @@ -67,11 +67,13 @@ pre_check() { GITHUB_URL="github.com" Get_Docker_URL="get.docker.com" Get_Docker_Argu=" " + Docker_IMG="ghcr.io/naiba/nezha-dashboard" else GITHUB_RAW_URL="cdn.jsdelivr.net/gh/naiba/nezha@master" GITHUB_URL="dn-dao-github-mirror.daocloud.io" Get_Docker_URL="get.daocloud.io/docker" Get_Docker_Argu=" -s docker --mirror Aliyun" + Docker_IMG="registry.cn-shanghai.aliyuncs.com/erope/nezha-dashboard" fi } @@ -264,6 +266,7 @@ modify_dashboard_config() { sed -i "s/nz_site_title/${nz_site_title}/" ${NZ_DASHBOARD_PATH}/data/config.yaml sed -i "s/nz_site_port/${nz_site_port}/" ${NZ_DASHBOARD_PATH}/docker-compose.yaml sed -i "s/nz_grpc_port/${nz_grpc_port}/" ${NZ_DASHBOARD_PATH}/docker-compose.yaml + sed -i "s/image_url/${Docker_IMG}/" ${NZ_DASHBOARD_PATH}/docker-compose.yaml echo -e "面板配置 ${green}修改成功,请稍等重启生效${plain}"