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