From 76dde1757323fe3ef2cffd22fe3c93b05bb58717 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Mon, 23 Oct 2023 22:19:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=A0=A1=E9=AA=8C=E9=9D=A2=E6=9D=BF?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/install_panel.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/install_panel.sh b/scripts/install_panel.sh index eefa559bd6..8349c0004a 100644 --- a/scripts/install_panel.sh +++ b/scripts/install_panel.sh @@ -216,6 +216,14 @@ Init_Panel() { checksumsFileName=$(curl -sSL "https://api.github.com/repos/haozi-team/panel/releases/latest" | jq -r '.assets[] | select(.name | contains("checksums")) | .name') fi wget -T 20 -t 3 -O ${setup_Path}/panel/${checksumsFileName} "${checksumsFile}" + + # 处理 checksums 文件 + if [ "${ARCH}" == "x86_64" ]; then + sed -i '/linux_arm64/d' ${setup_Path}/panel/${checksumsFileName} + elif [ "${ARCH}" == "aarch64" ]; then + sed -i '/linux_amd64/d' ${setup_Path}/panel/${checksumsFileName} + fi + cd ${setup_Path}/panel if ! sha256sum --status -c ${checksumsFileName}; then echo -e $HR