From 7d8fe9a639d1ce4c1ebabbf3209113ecb891e382 Mon Sep 17 00:00:00 2001 From: Thorsten Spille Date: Tue, 20 Apr 2021 21:50:24 +0200 Subject: [PATCH] Changed setting locales #20 --- matrix.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/matrix.sh b/matrix.sh index 0c5dccc..f83c2e7 100644 --- a/matrix.sh +++ b/matrix.sh @@ -5,11 +5,15 @@ # (C) 2021 Script design and prototype by Markus Helmke # (C) 2021 Script rework and documentation by Thorsten Spille -# configure system language -dpkg-reconfigure locales - source /root/zamba.conf +sed -i "s|# $LXC_LOCALE|$LXC_LOCALE|" /etc/locale.gen +cat << EOF > /etc/default/locale +LANG="$LXC_LOCALE" +LANGUAGE=$LXC_LOCALE +EOF +locale-gen $LXC_LOCALE + # Set Timezone ln -sf /usr/share/zoneinfo/$LXC_TIMEZONE /etc/localtime