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