2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 10:17:17 +08:00

feat: 优化更新和重启流程

This commit is contained in:
耗子
2023-10-24 03:15:09 +08:00
parent e28b00f76d
commit 0e10823448
2 changed files with 44 additions and 22 deletions

View File

@@ -217,15 +217,8 @@ Init_Panel() {
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
if ! sha256sum --status -c ${checksumsFileName} --ignore-missing; then
echo -e $HR
echo "错误:面板压缩包 checksum 校验失败,文件可能被篡改或不完整,已终止操作"
exit 1