Skip to content

Commit

Permalink
fix for setting locale for Ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lange committed Dec 6, 2016
1 parent 808190a commit 62f7e99
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion examples/simple/hooks/instsoft.DEBIAN
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ ainsl -a /etc/ucf.conf "^conf_force_conffold=YES"

# in case the locales are already included inside the base file (Ubuntu)
if [ -f $target/usr/sbin/locale-gen ]; then
rm $target/etc/locale.gen
$ROOTCMD dpkg-reconfigure -fnoninteractive locales
exit
fi
Expand Down
5 changes: 5 additions & 0 deletions examples/simple/scripts/UBUNTU/90-apt
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#! /bin/bash

if ifclass GERMAN; then
$ROOTCMD locale-gen LANG=de_DE.UTF-8
$ROOTCMD update-locale LANG=de_DE.UTF-8
else
ainsl -v /etc/locale.gen '^en_US.UTF-8 UTF-8'
$ROOTCMD locale-gen
$ROOTCMD update-locale LANG=en_US.UTF-8
fi

# check if we already use an external mirror
Expand Down

0 comments on commit 62f7e99

Please sign in to comment.