Skip to content

Commit

Permalink
Merge pull request #1796 from GSA/dev
Browse files Browse the repository at this point in the history
Pull dev into main in order to fix pipeline issue
  • Loading branch information
XavierMetichecchia authored Sep 11, 2024
2 parents 93020f3 + 3a14dc1 commit 2302fc2
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions scripts/pipeline/deb-cf-install.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2302fc2

Please sign in to comment.