core: 设置 alpine community 国内源

This commit is contained in:
bin456789 2023-10-25 23:06:26 +08:00
parent a69258f422
commit d4d383f99b
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B
2 changed files with 4 additions and 2 deletions

View File

@ -212,7 +212,8 @@ add_community_repo_for_alpine() {
fi
if ! grep -x "http.*/$alpine_ver/community" /etc/apk/repositories; then
echo http://dl-cdn.alpinelinux.org/alpine/$alpine_ver/community >>/etc/apk/repositories
is_in_china && mirror=mirrors.tuna.tsinghua.edu.cn || mirror=dl-cdn.alpinelinux.org
echo https://$mirror/alpine/$alpine_ver/community >>/etc/apk/repositories
fi
}

View File

@ -48,7 +48,8 @@ add_community_repo() {
fi
if ! grep -x "http.*/$alpine_ver/community" /etc/apk/repositories; then
echo http://dl-cdn.alpinelinux.org/alpine/$alpine_ver/community >>/etc/apk/repositories
is_in_china && mirror=mirrors.tuna.tsinghua.edu.cn || mirror=dl-cdn.alpinelinux.org
echo https://$mirror/alpine/$alpine_ver/community >>/etc/apk/repositories
fi
}