fix: clear cookie jar before each cert upload attempt

This commit is contained in:
Claus Lohmar 2026-07-07 18:44:12 +01:00
parent d6e0387b1c
commit b6938d3800

View file

@ -313,6 +313,7 @@ EOF
CRT_FILE="$CERTS_DIR/${FQDN}.crt" CRT_FILE="$CERTS_DIR/${FQDN}.crt"
[ -f "$CRT_FILE" ] || continue [ -f "$CRT_FILE" ] || continue
for TRY in 1 2 3; do for TRY in 1 2 3; do
rm -f /tmp/zc.txt
C=$(curl -s --max-time 5 -c /tmp/zc.txt "http://127.0.0.1:8000/login.html" 2>&1) C=$(curl -s --max-time 5 -c /tmp/zc.txt "http://127.0.0.1:8000/login.html" 2>&1)
T=$(echo "$C" | grep 'zoraxy.csrf.Token' | sed 's/.*content="//;s/".*//') T=$(echo "$C" | grep 'zoraxy.csrf.Token' | sed 's/.*content="//;s/".*//')
if [ -z "$T" ]; then if [ -z "$T" ]; then