core: 设置 alpine community 国内源
This commit is contained in:
parent
a69258f422
commit
d4d383f99b
@ -212,7 +212,8 @@ add_community_repo_for_alpine() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if ! grep -x "http.*/$alpine_ver/community" /etc/apk/repositories; then
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
3
trans.sh
3
trans.sh
@ -48,7 +48,8 @@ add_community_repo() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if ! grep -x "http.*/$alpine_ver/community" /etc/apk/repositories; then
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user