From ea60e768dedfefcae5a8db5c4ebeadf8bc91fa69 Mon Sep 17 00:00:00 2001 From: Thorsten Spille Date: Tue, 20 Apr 2021 21:48:21 +0200 Subject: [PATCH] Changed setting locales #20 --- just_lxc.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/just_lxc.sh b/just_lxc.sh index 881a310..72b6b6d 100644 --- a/just_lxc.sh +++ b/just_lxc.sh @@ -5,10 +5,15 @@ # (C) 2021 Script design and prototype by Markus Helmke # (C) 2021 Script rework and documentation by Thorsten Spille -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