set locale within install-user script

This commit is contained in:
Ray Elliott 2020-09-04 18:50:00 +01:00
parent b179e15f47
commit ce9fc451cd
1 changed files with 8 additions and 0 deletions

View File

@ -5,6 +5,14 @@ _home_dir="/home/$user"
echo "Adding user: $user"
ssh -T $ssh << EOSSH
if [ -f /etc/locale.gen ] && command -v locale-gen ; then
echo 'en_GB.UTF-8 UTF-8' > /etc/locale.gen
locale-gen
echo 'LANG="en_GB.UTF-8"' > /etc/default/locale
else
echo 'Warning: cannot set locale'
fi
echo "Installing required packages .."
export DEBIAN_FRONTEND=noninteractive
apt-get --assume-yes install sudo git tmux zsh curl