From b82e86cb8e57913795d8e8f7b0663b7e853acb58 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Sun, 9 Mar 2014 23:12:00 -0300 Subject: [PATCH] boxes: Fix locales for ubuntu and debian --- boxes/debian/vagrant-lxc-fixes.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/boxes/debian/vagrant-lxc-fixes.sh b/boxes/debian/vagrant-lxc-fixes.sh index c5ea0e4..fb2d58c 100755 --- a/boxes/debian/vagrant-lxc-fixes.sh +++ b/boxes/debian/vagrant-lxc-fixes.sh @@ -17,8 +17,6 @@ if [ ${DISTRIBUTION} = 'debian' ]; then # Ensure locales are properly set, based on http://askubuntu.com/a/238063 LANG=${LANG:-en_US.UTF-8} sed -i "s/^# ${LANG}/${LANG}/" ${ROOTFS}/etc/locale.gen - utils.lxc.attach /usr/sbin/locale-gen - utils.lxc.attach update-locale LANG=${LANG} # Fixes some networking issues # See https://github.com/fgrehm/vagrant-lxc/issues/91 for more info @@ -30,3 +28,6 @@ if [ ${DISTRIBUTION} = 'debian' ]; then utils.lxc.attach /usr/sbin/update-rc.d -f mountall-bootclean.sh remove utils.lxc.attach /usr/sbin/update-rc.d -f mountnfs-bootclean.sh remove fi + +utils.lxc.attach /usr/sbin/locale-gen ${LANG} +utils.lxc.attach update-locale LANG=${LANG}