1
0
forked from ScoDoc/ScoDoc

Install locale en_US.UTF-8, for ScoDoc 7 migration

This commit is contained in:
Emmanuel Viennet 2021-08-18 21:43:21 +02:00
parent d99b9aeb59
commit c25c2b50c4

View File

@ -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