deploy.sh : smoke TLS local, code vide → 000

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Jules Nény
2026-09-27 15:22:28 +02:00
co-authored by Claude Fable 5.1
parent 2e249f1027
commit a9e0143536
+1 -1
View File
@@ -54,7 +54,7 @@ grep -q "\"hash\":\"${HASH}\"" "${DEST}/current/build.json" || {
}
# Caddy redirige http → https (308) : on interroge donc le vhost en TLS, en local, sans dépendre du DNS.
# Sans certificat (DNS absent), la poignée de main TLS échoue : on l'accepte comme « route posée, certificat en attente ».
CODE="$(curl -sk -m 10 --resolve "${DOMAINE}:443:127.0.0.1" -o /tmp/quartier-smoke.json -w '%{http_code}' "https://${DOMAINE}/build.json" || echo 000)"
CODE="$(curl -sk -m 10 --resolve "${DOMAINE}:443:127.0.0.1" -o /tmp/quartier-smoke.json -w '%{http_code}' "https://${DOMAINE}/build.json" 2>/dev/null || true)"; CODE="${CODE:-000}"
if [ "${CODE}" = "200" ] && grep -q "\"hash\":\"${HASH}\"" /tmp/quartier-smoke.json; then
echo " marqueur ${HASH} servi par Caddy (TLS local)"
else