diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-03-08 10:50:46 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-06-17 13:21:27 +0200 |
commit | 68a064fde171c99066e3a3470a98ca3ed39bce5a (patch) | |
tree | 2c93553a9072a6e0156a7e81d3a9fc8d8c51163f /install/ishtar-prepare-instance | |
parent | 663b1610fbb8483a787883eb0efeec09323ab074 (diff) | |
download | Ishtar-68a064fde171c99066e3a3470a98ca3ed39bce5a.tar.bz2 Ishtar-68a064fde171c99066e3a3470a98ca3ed39bce5a.zip |
Isntall script: manage locale
Diffstat (limited to 'install/ishtar-prepare-instance')
-rwxr-xr-x | install/ishtar-prepare-instance | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/install/ishtar-prepare-instance b/install/ishtar-prepare-instance index fec08b119..4bdafd122 100755 --- a/install/ishtar-prepare-instance +++ b/install/ishtar-prepare-instance @@ -51,13 +51,6 @@ do_install_instance() { fi fi - export LANG=fr_FR.UTF-8 - if [ "$(locale 2>&1 >/dev/null|wc -l)" != 0 ]; then - cecho r "Unable to set LANG=$LANG properly" - cecho "Try: 'dpkg-reconfigure locales' or install the 'locales-all' package" - exit 1 - fi - if [ ! -z '$CONFIG_PATH' ]; then CONFIG_PATH="/etc/ishtar/" fi @@ -73,6 +66,13 @@ do_install_instance() { source $CONFIG_PATH/config + export LANG=$ISHTAR_LOCALE.UTF-8 + if [ "$(locale 2>&1 >/dev/null|wc -l)" != 0 ]; then + cecho r "Unable to set LANG=$LANG properly" + cecho "Try: 'dpkg-reconfigure locales' or install the 'locales-all' package" + exit 1 + fi + cd $ISHTAR_PATH INSTANCES_FILE=$CONFIG_PATH/instances |