From 81de0383382de5745630639569cc42cd1512e677 Mon Sep 17 00:00:00 2001 From: "adheli.tavares" Date: Mon, 13 May 2024 14:30:01 +0100 Subject: [PATCH] Add sudo to curl command to download compose script Change-Id: If3190a60f1ee99db89d0c8eaa669e8e626270bc2 Signed-off-by: adheli.tavares --- jjb/onap/policy-docker-csit-jobs.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jjb/onap/policy-docker-csit-jobs.sh b/jjb/onap/policy-docker-csit-jobs.sh index 9675ff33..f659c711 100644 --- a/jjb/onap/policy-docker-csit-jobs.sh +++ b/jjb/onap/policy-docker-csit-jobs.sh @@ -13,13 +13,14 @@ sudo apt-get install -y python3-venv sudo apt-get install -y python3-dev gcc echo "----------------------------------------------------" -echo "Install Docker compose if needed" +echo "Install Docker Compose if needed" echo "----------------------------------------------------" if [ -f /usr/local/lib/docker/cli-plugins/docker-compose ]; then echo "Docker compose already installed" else + echo "Installing Docker Compose" sudo mkdir -p /usr/local/lib/docker/cli-plugins - curl -SL https://github.com/docker/compose/releases/download/v2.27.0/docker-compose-linux-x86_64 -o /usr/local/lib/docker/cli-plugins/docker-compose + sudo curl -SL https://github.com/docker/compose/releases/download/v2.27.0/docker-compose-linux-x86_64 -o /usr/local/lib/docker/cli-plugins/docker-compose sudo chmod +x /usr/local/lib/docker/cli-plugins/docker-compose fi -- 2.25.1