diff options
| author | Bruno Ribas <brunoribas@gmail.com> | 2016-11-04 18:15:40 +0000 |
|---|---|---|
| committer | Bruno Ribas <brunoribas@gmail.com> | 2016-11-04 18:15:40 +0000 |
| commit | 55f257b1228b3a78b0b69a42d28fe8f93b11168e (patch) | |
| tree | 4f1f9538d4493633541c372dde22817228d555c3 /tools | |
| parent | e38f8a6f6483bb2bdc85bfcc04021429e5f18b4b (diff) | |
| download | boca-55f257b1228b3a78b0b69a42d28fe8f93b11168e.tar.gz boca-55f257b1228b3a78b0b69a42d28fe8f93b11168e.zip | |
createbocajail.sh: Generate en_US.UTF-8 locale
Signed-off-by: Bruno Ribas <brunoribas@gmail.com>
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/etc/icpc/createbocajail.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/etc/icpc/createbocajail.sh b/tools/etc/icpc/createbocajail.sh index c5deb7b..a74d001 100755 --- a/tools/etc/icpc/createbocajail.sh +++ b/tools/etc/icpc/createbocajail.sh @@ -111,6 +111,11 @@ echo "*** Populating $homejail" cat <<EOF > /home/bocajail/tmp/populate.sh #!/bin/bash mount -t proc proc /proc + +echo "LC_ALL=en_US.UTF-8" > /etc/default/locale +echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen +/usr/sbin/locale-gen +/usr/sbin/update-locale apt-get -y update apt-get -y install python-software-properties software-properties-common add-apt-repository -y ppa:brunoribas/ppa-maratona @@ -125,6 +130,8 @@ mkdir -p /bocajail/usr/bin [ -x /usr/bin/safeexec ] && cp -a /usr/bin/safeexec /bocajail/usr/bin/ cp -f /etc/apt/sources.list $homejail/etc/apt/ chmod 755 /home/bocajail/tmp/populate.sh + +export LC_ALL=en_US.UTF-8 cd / ; chroot $homejail /tmp/populate.sh |