set system locale

This commit is contained in:
Ray Elliott 2020-03-20 13:41:27 +00:00
parent 7092b12ea3
commit a4ac428955
1 changed files with 12 additions and 0 deletions

12
system.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
set -e
# locale
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 'system.sh: Warning can not set locale'
fi