1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-05 00:27:25 +00:00

Run apt-get update before installing anything

This commit is contained in:
downtownallday 2020-06-09 21:51:01 -04:00
parent 828f9d0185
commit ca33614cbf

View File

@ -59,6 +59,9 @@ before_miab_install() {
H2 "Update /etc/hosts" H2 "Update /etc/hosts"
update_hosts_for_private_ip || die "Could not update /etc/hosts" update_hosts_for_private_ip || die "Could not update /etc/hosts"
# update package lists before installing anything
apt-get update || die "apt-get update failed!"
# install prerequisites # install prerequisites
H2 "QA prerequisites" H2 "QA prerequisites"
install_qa_prerequisites || die "Error installing QA prerequisites" install_qa_prerequisites || die "Error installing QA prerequisites"