boxes: Fix locales for ubuntu and debian
This commit is contained in:
parent
cfa1d2e02f
commit
b82e86cb8e
1 changed files with 3 additions and 2 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue