From 158dbf72d8d4e4e0e3269969bb14ac6656f133f1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Javier=20B=C3=A9rtoli?= Date: Thu, 22 Jul 2021 17:06:01 -0300 Subject: [PATCH] 17535: missing 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jenkins/packer-images/jenkins-image-common.sh b/jenkins/packer-images/jenkins-image-common.sh index 7bbc525..62de53e 100755 --- a/jenkins/packer-images/jenkins-image-common.sh +++ b/jenkins/packer-images/jenkins-image-common.sh @@ -13,10 +13,12 @@ sudo su -c "echo ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDH8swFWEfEfHhA+C5ezV8SXO/ # Install a few dependency packages # First, let's figure out the OS we're working on OS_ID=$(grep ^ID= /etc/os-release |cut -f 2 -d \") +echo "Detected distro: ${OS_ID}" + case ${OS_ID} in centos) PREINSTALL_CMD="/bin/true" - INSTALL_CMD="yum -y" + INSTALL_CMD="yum install -y" POSTINSTALL_CMD="/bin/true" PKGS="git nmap-ncat java-11-openjdk" ;; -- 2.30.2