diff --git a/install_yunohost b/install_yunohost index 7d60371..03a3b7d 100755 --- a/install_yunohost +++ b/install_yunohost @@ -110,6 +110,8 @@ function main() reboot fi + step fix_locals + step post_install || die "Post-installation failed" info "Installation logs are available in $YUNOHOST_LOG" @@ -402,6 +404,12 @@ function restart_services() { return 0 } +function fix_locals() { + [ "$(grep LC_ALL /etc/environment)" ] || echo 'LC_ALL="en_US.UTF-8"' >> /etc/environment + source /etc/environment + export LC_ALL +} + function post_install() { # No postinstall in auto mode [[ "$AUTOMODE" == "1" ]] && return 0