forked from ScoDoc/ScoDoc
Install locale en_US.UTF-8, for ScoDoc 7 migration
This commit is contained in:
parent
d99b9aeb59
commit
c25c2b50c4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user