From 37ea672f10f5c73ccf23d23b7cea28bf26663854 Mon Sep 17 00:00:00 2001 From: h8h Date: Tue, 30 Sep 2014 13:33:27 +0200 Subject: [PATCH] In Addition to #206, generate the locals before change to it. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For my german box changing the locale failed: ´´´´/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) setup/functions.sh: line 6: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)´´´´ The first use / change happens in [function.sh](https://github.com/mail-in-a-box/mailinabox/blob/master/setup/functions.sh#L5) so in my opinion we have to generate it in bootstrap.sh. --- setup/bootstrap.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup/bootstrap.sh b/setup/bootstrap.sh index cbf2c7c3..b97042be 100755 --- a/setup/bootstrap.sh +++ b/setup/bootstrap.sh @@ -26,6 +26,11 @@ if [ ! -d mailinabox ]; then echo Downloading Mail-in-a-Box . . . git clone -b $TAG --depth 1 https://github.com/mail-in-a-box/mailinabox 2> /dev/null + + # Generate the locale en_US.UTF-8 + locale-gen en_US.UTF-8 + dpkg-reconfigure locales + cd mailinabox # If it does exist, update it.