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