Skip to content

Commit

Permalink
Set the default locale to en_US.UTF-8 in vagrant.
Browse files Browse the repository at this point in the history
Prevents errors on vagrant ssh if the host system has an locale unknown
to the vagrant system.
  • Loading branch information
inytar authored and timabbott committed Mar 17, 2017
1 parent eb3304b commit b4e98a6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b4e98a6

Please sign in to comment.