From 7dede318d5e82e3fb9937b521213d939ce807185 Mon Sep 17 00:00:00 2001 From: Mike Place Date: Thu, 27 Oct 2016 11:59:45 +0900 Subject: [PATCH] Apply the insecure flag to git as well --- bootstrap-salt.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index 7bb9dd5..da8f78c 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -1561,6 +1561,10 @@ __yum_install_noinput() { __git_clone_and_checkout() { echodebug "Installed git version: $(git --version | awk '{ print $3 }')" + # Turn off SSL verification if -I flag was set for insecure downloads + if [ "$_INSECURE_DL" -eq $BS_TRUE ]; then + export GIT_SSL_NO_VERIFY=1 + fi __SALT_GIT_CHECKOUT_PARENT_DIR=$(dirname "${_SALT_GIT_CHECKOUT_DIR}" 2>/dev/null) __SALT_GIT_CHECKOUT_PARENT_DIR="${__SALT_GIT_CHECKOUT_PARENT_DIR:-/tmp/git}"