-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1796 from GSA/dev
Pull dev into main in order to fix pipeline issue
- Loading branch information
Showing
1 changed file
with
23 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|