From ce9fc451cdc8a8113e7c87ee7369c7060d7cc459 Mon Sep 17 00:00:00 2001 From: ray Date: Fri, 4 Sep 2020 18:50:00 +0100 Subject: [PATCH] set locale within install-user script --- scripts/debian10/install-user.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/debian10/install-user.sh b/scripts/debian10/install-user.sh index 1c2d5a3..e621409 100755 --- a/scripts/debian10/install-user.sh +++ b/scripts/debian10/install-user.sh @@ -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