mirror of
https://github.com/YunoHost/install_script.git
synced 2024-09-03 20:06:25 +02:00
[fix] set up locals to avoid perl warnings
This commit is contained in:
parent
146bca8406
commit
21ab5a714f
1 changed files with 8 additions and 0 deletions
|
@ -110,6 +110,8 @@ function main()
|
||||||
reboot
|
reboot
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
step fix_locals
|
||||||
|
|
||||||
step post_install || die "Post-installation failed"
|
step post_install || die "Post-installation failed"
|
||||||
|
|
||||||
info "Installation logs are available in $YUNOHOST_LOG"
|
info "Installation logs are available in $YUNOHOST_LOG"
|
||||||
|
@ -402,6 +404,12 @@ function restart_services() {
|
||||||
return 0
|
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() {
|
function post_install() {
|
||||||
# No postinstall in auto mode
|
# No postinstall in auto mode
|
||||||
[[ "$AUTOMODE" == "1" ]] && return 0
|
[[ "$AUTOMODE" == "1" ]] && return 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue