From c25c2b50c4b7d0bdd997256f1aa32a34d6b51ea5 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Wed, 18 Aug 2021 21:43:21 +0200 Subject: [PATCH] Install locale en_US.UTF-8, for ScoDoc 7 migration --- tools/install_debian11.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/install_debian11.sh b/tools/install_debian11.sh index ebcae0d22..28bf6136a 100755 --- a/tools/install_debian11.sh +++ b/tools/install_debian11.sh @@ -47,6 +47,16 @@ done change_scodoc_file_ownership set_scodoc_var_dir +# ------------ LOCALES +locname="en_US.UTF-8" +outname=$(echo ${locname//-/} | tr '[A-Z]' '[a-z]') +if [ "$(locale -a | grep -E -i ^${outname}$ | wc -l)" -lt 1 ] +then + echo adding $locname + echo "$locname ${locname##*.}" >> /etc/locale.gen + /usr/sbin/locale-gen --keep-existing +fi + # ------------ AJOUT DES PAQUETS DEBIAN NECESSAIRES apt-get update apt-get -y install gcc