From 9d5726b28c388cdc9f4e68c1bbe86c2a0d3cfbe5 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Tue, 31 Oct 2023 22:33:59 +0800 Subject: [PATCH] =?UTF-8?q?alpine:=20=E4=B8=8D=E9=87=8D=E7=BD=AE=20repo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trans.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/trans.sh b/trans.sh index 142bb3a..835a20f 100644 --- a/trans.sh +++ b/trans.sh @@ -591,8 +591,11 @@ EOF fi # 重置为官方仓库配置 - true >/etc/apk/repositories - setup-apkrepos -1 + # 国内机可能无法访问mirror列表而报错 + if false; then + true >/etc/apk/repositories + setup-apkrepos -1 + fi # 安装到硬盘 # alpine默认使用 syslinux (efi 环境除外),这里强制使用 grub,方便用脚本再次重装