mirror of https://github.com/zulip/zulip.git
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:
parent
eb3304bf37
commit
b4e98a695d
|
@ -99,8 +99,17 @@ set -o pipefail
|
||||||
if [ -d "/sys/fs/selinux" ]; then
|
if [ -d "/sys/fs/selinux" ]; then
|
||||||
sudo mount -o remount,ro /sys/fs/selinux
|
sudo mount -o remount,ro /sys/fs/selinux
|
||||||
fi
|
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
|
ln -nsf /srv/zulip ~/zulip
|
||||||
/srv/zulip/tools/provision
|
/srv/zulip/tools/provision
|
||||||
|
|
||||||
|
# Run any custom provision hooks the user has configured
|
||||||
if [ -f /srv/zulip/tools/custom_provision ]; then
|
if [ -f /srv/zulip/tools/custom_provision ]; then
|
||||||
chmod +x /srv/zulip/tools/custom_provision
|
chmod +x /srv/zulip/tools/custom_provision
|
||||||
/srv/zulip/tools/custom_provision
|
/srv/zulip/tools/custom_provision
|
||||||
|
|
Loading…
Reference in New Issue