[fix] Add more apt-get update commands

Fixes #2962
This commit is contained in:
William Wernert
2021-02-16 10:24:58 -05:00
parent 38a5b86813
commit 7a9f801eb1
2 changed files with 4 additions and 0 deletions

View File

@@ -130,6 +130,7 @@ if [[ -f automation/$automation && $(basename $automation) == $automation ]]; th
if [[ ! $is_iso ]]; then
echo "Installing sshpass for automated testing." >> $setup_log 2>&1
if [ "$OS" == ubuntu ]; then
retry 50 10 "apt-get update" >> "$setup_log" 2>&1 || exit 1
retry 50 10 "apt-get -y install sshpass" >> $setup_log 2>&1 || exit 1
else
yum -y install sshpass >> $setup_log 2>&1