Commit 5c22981d authored by Andy Mayhew's avatar Andy Mayhew

Merge branch 'master' into 'master'

Fix for hanging  "http-01 challenge for ..." due to https auto-redirects

See merge request !1
parents d12a4fdd e8266a25
......@@ -23,12 +23,12 @@ CertPath="/.well-known/acme-challenge/"
cd ${SaveDir}
git add -- ${CERTBOT_TOKEN}
git commit -m "add certbot token" -- ${CERTBOT_TOKEN}
git commit -m "add certbot token -- ${CERTBOT_TOKEN}"
git push
## waiting for CI/CD publishing to happen
while true; do
resp=`curl -s -I "http://${CERTBOT_DOMAIN}${CertPath}${CERTBOT_TOKEN}" | grep HTTP | awk '{print $2 }'`
resp=`curl -L -s -I "http://${CERTBOT_DOMAIN}${CertPath}${CERTBOT_TOKEN}" | grep HTTP | awk 'END{print $2 }'`
if [ "${resp}" = "200" ]; then
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment