[scripts] make sure to only write /etc/locale.conf and force 02locale as symlink.

This fixes locale config after install.
This commit is contained in:
Fabio Erculiani
2016-08-12 22:33:34 +02:00
parent a676ba6d0b
commit 53a0ab8f48
+6 -5
View File
@@ -58,11 +58,12 @@ cp /etc/skel /root -Rap
chown root:root /root -R
# Setup locale to en_US
for f in /etc/env.d/02locale /etc/locale.conf; do
echo LANG=en_US.UTF-8 > "${f}"
echo LANGUAGE=en_US.UTF-8 >> "${f}"
echo LC_ALL=en_US.UTF-8 >> "${f}"
done
echo LANG=en_US.UTF-8 > /etc/locale.conf
echo LANGUAGE=en_US.UTF-8 >> /etc/locale.conf
echo LC_ALL=en_US.UTF-8 >> /etc/locale.conf
# Make sure that 02locale is a symlink to locale.conf
rm -f /etc/env.d/02locale
ln -sf ../locale.conf /etc/env.d/02locale
if [ -n "${UPGRADE_REPO}" ]; then