set locale within install-user script
This commit is contained in:
parent
b179e15f47
commit
ce9fc451cd
|
@ -5,6 +5,14 @@ _home_dir="/home/$user"
|
||||||
echo "Adding user: $user"
|
echo "Adding user: $user"
|
||||||
|
|
||||||
ssh -T $ssh << EOSSH
|
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 .."
|
echo "Installing required packages .."
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
apt-get --assume-yes install sudo git tmux zsh curl
|
apt-get --assume-yes install sudo git tmux zsh curl
|
||||||
|
|
Loading…
Reference in New Issue