-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
docker-flow-letsencrypt/certbot.sh
Lines 41 to 46 in 68747ea
| let exitcode=tries=0 | |
| until [ $tries -ge $MAXRETRIES ] | |
| do | |
| tries=$[$tries+1] | |
| certbot-auto certonly --dry-run "${args[@]}" -d "$i" | grep -q 'The dry run was successful.' && break | |
| exitcode=$? |
This way, after a initial failure of domain validation, the exitcode variable are only redefined when the validation fails again. If the validation succeeds, the exitcode remains with the value of previous iteration because the "break" statement.
This cause the domain to not be included in the certificate generation.
To work correctly, the exitcode variable needs to be cleaned before every domain validation trial
nigeisel
Metadata
Metadata
Assignees
Labels
No labels