mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-19 04:49:13 +08:00
core: 设置 alpine community 国内源
This commit is contained in:
parent
a69258f422
commit
d4d383f99b
@ -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
|
||||
}
|
||||
|
||||
|
3
trans.sh
3
trans.sh
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user