From 0dc5c0f8fb0d921d5b9c29bff797d0113071c39a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Fri, 5 Jul 2019 22:34:33 +0200 Subject: [PATCH] Fix locale for the script --- proxmox/proxmox.template.debian.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/proxmox/proxmox.template.debian.sh b/proxmox/proxmox.template.debian.sh index 6b4f2ad..ba30b93 100755 --- a/proxmox/proxmox.template.debian.sh +++ b/proxmox/proxmox.template.debian.sh @@ -24,6 +24,12 @@ dpkg-reconfigure -f noninteractive tzdata # manage locale {{{ NEW_L="en_US.UTF-8" +## Fix locale for the script +export LANGUAGE="${NEW_L}" +export LANG="${NEW_L}" +export LC_ALL="${NEW_L}" + +## Generate new locale sed -i -e "s/# \(${NEW_L} UTF-8\)/\1/" /etc/locale.gen locale-gen echo "LANG=\"${NEW_L}\"" > /etc/default/locale