evoacme: exit after certbot in dry-run mode

This commit is contained in:
Jérémy Lecour 2017-10-13 17:13:14 +02:00 committed by Jérémy Lecour
parent 350abe5787
commit 2066a79f2e
1 changed files with 5 additions and 0 deletions

View File

@ -202,6 +202,11 @@ main() {
2>&1 \
| grep -v "certbot.crypto_util"
if [ "${DRY_RUN}" = "1" ]; then
echo "In dry-run mode, we stop here. Bye"
exit 0
fi
# verify if all is right
x509_verify "${NEW_CERT}" || error "${NEW_CERT} is invalid"
x509_verify "${NEW_FULLCHAIN}" || error "${NEW_FULLCHAIN} is invalid"