10 lines
270 B
Bash
10 lines
270 B
Bash
|
#!/bin/sh
|
||
|
set -eu
|
||
|
|
||
|
LANG=${LANG:-C.UTF-8}
|
||
|
LOCALES=${LOCALES:-${LANG} ${LANG##*.}}
|
||
|
printf "LANG=%s\n" "${LANG}" > /etc/default/locale
|
||
|
rm /etc/locale.gen && printf "%s\n" "${LOCALES}" |while read locale; do
|
||
|
printf "%s\n" "${locale}" >> /etc/locale.gen
|
||
|
done && locale-gen
|