From 6d55ee52222e8532826e013dffd1be69d2a58e6e Mon Sep 17 00:00:00 2001 From: Chris Bono Date: Wed, 11 Sep 2024 10:05:16 -0500 Subject: [PATCH] Fix for cf-cli cert expired (attempt 2) --- scdf_cf_setup/cf-scdf-setup.sh | 6 ++++-- scripts/at-setup.sh | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/scdf_cf_setup/cf-scdf-setup.sh b/scdf_cf_setup/cf-scdf-setup.sh index f7afa46..10e54b1 100755 --- a/scdf_cf_setup/cf-scdf-setup.sh +++ b/scdf_cf_setup/cf-scdf-setup.sh @@ -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 diff --git a/scripts/at-setup.sh b/scripts/at-setup.sh index f64ef87..f0e0abd 100755 --- a/scripts/at-setup.sh +++ b/scripts/at-setup.sh @@ -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