[fix] apt will raised those errors on bad local, do this before

This commit is contained in:
Laurent Peuch 2018-07-22 14:23:49 +02:00
parent d97ea92fac
commit 1c7a23cb4f

View file

@ -90,6 +90,7 @@ function main()
step install_script_dependencies || die "Unable to install dependencies to install script"
step create_custom_config || die "Creating custom configuration file /etc/yunohost/yunohost.conf failed"
step confirm_installation || die "Installation cancelled at your request"
step fix_locales # do not die for a failure here, it's minor
step setup_package_source || die "Setting up deb package sources failed"
step apt_update || die "Error caught during 'apt-get update'"
step register_debconf || die "Unable to insert new values into debconf database"
@ -110,8 +111,6 @@ function main()
reboot
fi
step fix_locales
step post_install || die "Post-installation failed"
info "Installation logs are available in $YUNOHOST_LOG"