From: adheli.tavares Date: Mon, 13 May 2024 13:30:01 +0000 (+0100) Subject: Add sudo to curl command to download compose script X-Git-Url: https://gerrit.nordix.org/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F59%2F21059%2F1;p=infra%2Fcicd.git Add sudo to curl command to download compose script Change-Id: If3190a60f1ee99db89d0c8eaa669e8e626270bc2 Signed-off-by: adheli.tavares --- 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