Add DEBIAN_FRONTEND=noninteractive to setup script

Some packages will require a restart, which presents a prompt in a TTY.
This change adds the DEBIAN_FRONTEND variable to APT calls to skip TTY
prompts for CI environments.

Change-Id: I5adc8ff9e720e3a8c11081cad43d6ee375ce7cdc
This commit is contained in:
Drew Walters 2020-09-09 18:11:53 +00:00
parent 233bbda0e0
commit adb5e5835e
1 changed files with 2 additions and 2 deletions

View File

@ -33,8 +33,8 @@ envsubst <"${AIRSHIPCTL_WS}/tools/gate/config_template.yaml" > "$PLAYBOOK_CONFIG
# use new version of ansible, Ubuntu has old one
sudo apt update
sudo apt -y install software-properties-common python3-pip
sudo apt -y --no-install-recommends install docker.io make
sudo DEBIAN_FRONTEND=noninteractive apt -y install software-properties-common python3-pip
sudo DEBIAN_FRONTEND=noninteractive apt -y --no-install-recommends install docker.io make
ANSIBLE_PACKAGES="ansible netaddr"
if [[ -z "${http_proxy}" ]]; then