Set the default locale to en_US.UTF-8 in vagrant.

Prevents errors on vagrant ssh if the host system has an locale unknown
to the vagrant system.
This commit is contained in:
inytar 2016-11-22 13:43:01 -05:00 committed by Tim Abbott
parent eb3304bf37
commit b4e98a695d
1 changed files with 9 additions and 0 deletions

9
Vagrantfile vendored
View File

@ -99,8 +99,17 @@ set -o pipefail
if [ -d "/sys/fs/selinux" ]; then
sudo mount -o remount,ro /sys/fs/selinux
fi
# Set default locale, this prevents errors if the user has another locale set.
if ! grep -q 'LC_ALL=en_US.UTF-8' /etc/default/locale; then
echo "LC_ALL=en_US.UTF-8" | sudo tee -a /etc/default/locale
fi
# Provision the development environment
ln -nsf /srv/zulip ~/zulip
/srv/zulip/tools/provision
# Run any custom provision hooks the user has configured
if [ -f /srv/zulip/tools/custom_provision ]; then
chmod +x /srv/zulip/tools/custom_provision
/srv/zulip/tools/custom_provision