Skip to content

variable exitcode is not been cleaned before every domain validation #42

@rafael747

Description

@rafael747

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions