Merge "[fix] Update hostdeps.sh to do a non-interactive apt install"

This commit is contained in:
Zuul 2019-10-21 09:37:36 +00:00 committed by Gerrit Code Review
commit 38de656c0d
1 changed files with 4 additions and 1 deletions

View File

@ -33,7 +33,10 @@ then
done
if [[ ${#added_pkgs[@]} -gt 0 ]]
then
apt install -y --no-install-recommends "${added_pkgs[@]}"
DEBIAN_FRONTEND=noninteractive apt \
-o Dpkg::Options::="--force-confdef" \
-o Dpkg::Options::="--force-confold" \
install -y --no-install-recommends "${added_pkgs[@]}"
fi
else
echo "Only support testing on Ubuntu hosts at this time."