[fix] set up locals to avoid perl warnings

This commit is contained in:
Laurent Peuch 2018-07-22 13:51:41 +02:00
parent 146bca8406
commit 21ab5a714f

View file

@ -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