Skip to content

Commit

Permalink
VOTE-2844: Change CF CLI from apt repository to binary install (#981)
Browse files Browse the repository at this point in the history
  • Loading branch information
tt-gsa authored Sep 18, 2024
1 parent dfc2fee commit 556569c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
6 changes: 3 additions & 3 deletions scripts/pipeline/deb-basic-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ echo "Installing basic dependencies..."
{
if [ "$(whoami)" != "root" ]; then
sudo apt-get update
sudo apt-get install -y wget gnupg gettext
sudo apt-get install -y curl gettext
else
apt-get update
apt-get install -y wget gnupg gettext
apt-get install -y curl gettext
fi
} >/dev/null 2>&1
} >/dev/null 2>&1
13 changes: 4 additions & 9 deletions scripts/pipeline/deb-cf-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,10 @@

echo "Installing CloudFoundry repository..."
{
curl -L "https://packages.cloudfoundry.org/stable?release=linux64-binary&version=v8&source=github" | tar -zx
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
sudo mv cf cf8 /usr/local/bin
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
mv cf cf8 /usr/local/bin
fi
} >/dev/null 2>&1
} >/dev/null 2>&1

0 comments on commit 556569c

Please sign in to comment.