From a9e0143536b7c38df3a9bbc9263c91a114f042eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jules=20N=C3=A9ny?= Date: Sun, 27 Sep 2026 15:22:28 +0200 Subject: [PATCH] =?UTF-8?q?deploy.sh=20:=20smoke=20TLS=20local,=20code=20v?= =?UTF-8?q?ide=20=E2=86=92=20000?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5.1 --- deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index e0625fe..664ff4f 100755 --- a/deploy.sh +++ b/deploy.sh @@ -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