Skip to content

Commit 281e1dc

Browse files
author
ryan.kuba
committed
universal: internationalization initial release
1 parent 662d754 commit 281e1dc

File tree

1 file changed

+10
-0
lines changed
  • root/etc/s6-overlay/s6-rc.d/init-mod-universal-internationalization-install

1 file changed

+10
-0
lines changed

root/etc/s6-overlay/s6-rc.d/init-mod-universal-internationalization-install/run

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ if [[ "${LSIO_BASE}" == "alpine" ]] && [[ ! -f /usr/share/fonts/noto/NotoSansCJK
4141
lang
4242
elif [[ "${LSIO_BASE}" == "ubuntu" ]] && [[ ! -f /usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc ]]; then
4343
# Install fonts and locales
44+
sed -i \
45+
'/locale/d' \
46+
/etc/dpkg/dpkg.cfg.d/excludes
4447
apt-get update
4548
apt-get install -y \
4649
fonts-noto \
@@ -130,6 +133,9 @@ elif [[ "${LSIO_BASE}" == "ubuntu" ]] && [[ ! -f /usr/share/fonts/opentype/noto/
130133
language-pack-zh-hant
131134
elif [[ "${LSIO_BASE}" == "debian" ]] && [[ ! -f /usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc ]]; then
132135
# Install fonts and locales
136+
sed -i \
137+
'/locale/d' \
138+
/etc/dpkg/dpkg.cfg.d/docker
133139
apt-get update
134140
apt-get install -y \
135141
fonts-noto \
@@ -141,6 +147,7 @@ elif [[ "${LSIO_BASE}" == "debian" ]] && [[ ! -f /usr/share/fonts/opentype/noto/
141147
done
142148
elif [[ "${LSIO_BASE}" == "fedora" ]] && [[ ! -d /usr/share/licenses/google-noto-cjk-fonts-common ]]; then
143149
# Install fonts and locales
150+
rm -f /etc/rpm/macros.image-language-conf
144151
dnf install -y \
145152
glibc-langpack-aa \
146153
glibc-langpack-af \
@@ -716,6 +723,9 @@ elif [[ "${LSIO_BASE}" == "fedora" ]] && [[ ! -d /usr/share/licenses/google-noto
716723
done
717724
elif [[ "${LSIO_BASE}" == "arch" ]] && [[ ! -f /usr/share/fonts/noto-cjk/NotoSansCJK-Regular.ttc ]]; then
718725
# Install fonts
726+
sed -i \
727+
'/locale/d' \
728+
/etc/pacman.conf
719729
pacman -Sy --noconfirm \
720730
glibc \
721731
noto-fonts-cjk \

0 commit comments

Comments
 (0)