From e4dcd475e0b11a8e9fd10b5b32ec69787471fa6b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Javier=20B=C3=A9rtoli?= Date: Thu, 22 Jul 2021 12:43:31 -0300 Subject: [PATCH] 17535: Add missing Debian's pre-install command MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Arvados-DCO-1.1-Signed-off-by: Javier Bértoli --- jenkins/packer-images/jenkins-image-common.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jenkins/packer-images/jenkins-image-common.sh b/jenkins/packer-images/jenkins-image-common.sh index c7118d2..3dad7ab 100755 --- a/jenkins/packer-images/jenkins-image-common.sh +++ b/jenkins/packer-images/jenkins-image-common.sh @@ -22,11 +22,12 @@ case ${OS_ID} in POSTINSTALL_CMD="/bin/true" PKGS="git java-11-openjdk" "debian","ubuntu") + PREINSTALL_CMD="DEBIAN_FRONTEND=noninteractive apt update" INSTALL_CMD="DEBIAN_FRONTEND=noninteractive apt install -y" + POSTINSTALL_CMD="DEBIAN_FRONTEND=noninteractive apt autopurge -y" # SUFFIX packages with - to remove them # Remove unattended-upgrades so that it doesn't interfere with our nodes at startup PKGS="git default-jdk unattended-upgrades-" - POSTINSTALL_CMD="DEBIAN_FRONTEND=noninteractive apt autopurge -y" esac sudo su -c "${PREINSTALL_CMD}" -- 2.30.2