We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06bb023 commit d5db45fCopy full SHA for d5db45f
rootfs/etc/cont-init.d/15-cjk-font.sh
@@ -9,8 +9,13 @@ if is-bool-val-true "${ENABLE_CJK_FONT:-0}"; then
9
echo "CJK font already installed."
10
else
11
echo "installing CJK font..."
12
- if [ -n "$(which apk)" ]; then
13
- add-pkg font-wqy-zenhei --repository "${PACKAGES_MIRROR:-https://dl-cdn.alpinelinux.org/alpine}/edge/community"
+ if command -v apk >/dev/null; then
+ if apk --no-cache info font-wqy-zenhei > /dev/null
14
+ then
15
+ add-pkg font-wqy-zenhei
16
+ else
17
+ add-pkg font-wqy-zenhei --repository "${PACKAGES_MIRROR:-https://dl-cdn.alpinelinux.org/alpine}/v3.19/community"
18
+ fi
19
20
add-pkg fonts-wqy-zenhei
21
fi
0 commit comments