From 5d82414d4f134ec0219cb25354eea914d0a3abfa Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Wed, 4 Oct 2017 13:45:57 +0100 Subject: [PATCH] scripts: install-deps.sh: Set noninteractive for DEBIAN_FRONTEND This helps fixing the following problem when installing MySQL on Ubuntu hosts: Preparing to unpack .../mysql-server-5.7_5.7.19-0ubuntu0.16.04.1_amd64.deb ... debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline Configuring mysql-server-5.7 [...] New password for the MySQL "root" user: The package configuration becomes interactive and asks for configuring the root password on MySQL and this breaks automated testing. Change-Id: Icacd843950eee1b87bac2c3387e3562f8f584b77 --- scripts/install-deps.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/install-deps.sh b/scripts/install-deps.sh index 0069e7087..ed6d7048f 100644 --- a/scripts/install-deps.sh +++ b/scripts/install-deps.sh @@ -47,6 +47,7 @@ case ${ID,,} in ubuntu|debian) OS_FAMILY="Debian" + export DEBIAN_FRONTEND=noninteractive INSTALLER_CMD="sudo -H -E apt-get -y install" CHECK_CMD="dpkg -l" PKG_MAP=(