mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	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:
		
							
								
								
									
										9
									
								
								Vagrantfile
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								Vagrantfile
									
									
									
									
										vendored
									
									
								
							@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user