diff --git a/bootstrap.sh b/bootstrap.sh index 0d64f4a..f0c63bd 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -37,14 +37,34 @@ apt-get -y dist-upgrade echo "## updating locales" apt-get -q -y install locales | grep -v -e "is already the newest version" + LOC1=$(md5sum /etc/locale.gen | cut -b 1-32) + sed -i 's/^# *de_DE.UTF-8 UTF-8/de_DE.UTF-8 UTF-8/g' /etc/locale.gen sed -i 's/^# *en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g' /etc/locale.gen + LOC2=$(md5sum /etc/locale.gen | cut -b 1-32) + if [ "${LOC1}" != "${LOC2}" ]; then locale-gen | grep -v -e "^ " fi -update-locale LANG=en_US.UTF-8 + +cat >/etc/default/locale <