From 3a14dc176c14bf13c706247d2be2b31f0e4df452 Mon Sep 17 00:00:00 2001 From: Xavier Metichecchia Date: Wed, 11 Sep 2024 11:27:15 -0400 Subject: [PATCH] PXBF-dev: Ignore GPG error when downloading cli, try 1 --- scripts/pipeline/deb-cf-install.sh | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/scripts/pipeline/deb-cf-install.sh b/scripts/pipeline/deb-cf-install.sh index c5d4d7848..d68be1645 100755 --- a/scripts/pipeline/deb-cf-install.sh +++ b/scripts/pipeline/deb-cf-install.sh @@ -1,17 +1,34 @@ #!/bin/bash +# echo "Installing CloudFoundry repository..." +# { +# if [ "$(whoami)" != "root" ]; then +# wget -U "" -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo apt-key add - +# echo "deb https://packages.cloudfoundry.org/debian stable main" | sudo tee /etc/apt/sources.list.d/cloudfoundry-cli.list +# sudo apt-get update +# sudo apt-get install -y cf8-cli +# else +# wget -U "" -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | apt-key add - +# echo "deb https://packages.cloudfoundry.org/debian stable main" | tee /etc/apt/sources.list.d/cloudfoundry-cli.list +# apt-get update +# apt-get install -y cf8-cli +# fi +# cf install-plugin -f https://github.com/cloud-gov/cf-service-connect/releases/download/v1.1.3/cf-service-connect_linux_amd64 +# } &> /dev/null + + +#!/bin/bash echo "Installing CloudFoundry repository..." { if [ "$(whoami)" != "root" ]; then - wget -U "" -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo apt-key add - - echo "deb https://packages.cloudfoundry.org/debian stable main" | sudo tee /etc/apt/sources.list.d/cloudfoundry-cli.list + echo "deb [trusted=yes] https://packages.cloudfoundry.org/debian stable main" | sudo tee /etc/apt/sources.list.d/cloudfoundry-cli.list sudo apt-get update - sudo apt-get install -y cf8-cli + sudo apt-get install -y --allow-unauthenticated cf8-cli else - wget -U "" -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | apt-key add - - echo "deb https://packages.cloudfoundry.org/debian stable main" | tee /etc/apt/sources.list.d/cloudfoundry-cli.list + echo "deb [trusted=yes] https://packages.cloudfoundry.org/debian stable main" | tee /etc/apt/sources.list.d/cloudfoundry-cli.list apt-get update - apt-get install -y cf8-cli + apt-get install -y --allow-unauthenticated cf8-cli fi cf install-plugin -f https://github.com/cloud-gov/cf-service-connect/releases/download/v1.1.3/cf-service-connect_linux_amd64 } &> /dev/null +