Skip to content

Commit

Permalink
Fix for cf-cli cert expired (attempt 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
onobc committed Sep 11, 2024
1 parent ba6ff16 commit 6d55ee5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions scdf_cf_setup/cf-scdf-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ if [[ "$os" = "Linux" ]]; then
then
echo "Installing CloudFoundry CLI"
export APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=true
wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo apt-key add -
wget --no-check-certificate -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo apt-key add -
#wget -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 -o Acquire::AllowInsecureRepositories=true -o Acquire::AllowDowngradeToInsecureRepositories=true update
#sudo apt-get update
sudo apt-get install cf-cli --allow-unauthenticated -y
fi
if [[ "$SQL_PROVIDER" = "oracle" ]]; then
Expand Down
6 changes: 4 additions & 2 deletions scripts/at-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,11 @@ if [[ "$os" = "Linux" ]]; then
if ! command -v cf &>/dev/null; then
echo "Installing CloudFoundry CLI"
export APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=true
wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo apt-key add -
wget --no-check-certificate -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo apt-key add -
#wget -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 -o Acquire::AllowInsecureRepositories=true -o Acquire::AllowDowngradeToInsecureRepositories=true update
#sudo apt-get update
sudo apt-get install cf-cli --allow-unauthenticated -y
fi
if [[ "$SQL_PROVIDER" = "oracle" ]]; then
Expand Down

0 comments on commit 6d55ee5

Please sign in to comment.