questions.sh needs to apt-get update before it does an apt-get install, see #431, see #438

This commit is contained in:
Joshua Tauberer 2015-06-10 09:43:22 -04:00
parent 1ef455d37d
commit 0754ce01b1

View file

@ -6,8 +6,11 @@ if [ -z "$NONINTERACTIVE" ]; then
# use a shell flag instead. Really supress any output from installing dialog. # use a shell flag instead. Really supress any output from installing dialog.
# #
# Also install depencies needed to validate the email address. # Also install depencies needed to validate the email address.
echo Installing packages needed for setup... if [ ! -f /usr/bin/dialog ] || [ ! -f /usr/bin/python3 ] || [ ! -f /usr/bin/pip3 ]; then
apt_get_quiet install dialog python3 python3-pip || exit 1 echo Installing packages needed for setup...
apt-get -q -q update
apt_get_quiet install dialog python3 python3-pip || exit 1
fi
# email_validator is repeated in setup/management.sh # email_validator is repeated in setup/management.sh
hide_output pip3 install "email_validator==0.1.0-rc5" || exit 1 hide_output pip3 install "email_validator==0.1.0-rc5" || exit 1