Add sudo to curl command to download compose script 59/21059/1
authoradheli.tavares <adheli.tavares@est.tech>
Mon, 13 May 2024 13:30:01 +0000 (14:30 +0100)
committeradheli.tavares <adheli.tavares@est.tech>
Mon, 13 May 2024 13:30:31 +0000 (14:30 +0100)
Change-Id: If3190a60f1ee99db89d0c8eaa669e8e626270bc2
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
jjb/onap/policy-docker-csit-jobs.sh

index 9675ff332e838cc6798f284d0798464df2cc7d48..f659c711889686528e134238efc3cf57f2f85981 100644 (file)
@@ -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