From 34565c193d0360dd4abbe1e630e5cad1396e81ca Mon Sep 17 00:00:00 2001 From: BtbN Date: Tue, 23 Feb 2016 15:02:18 +0100 Subject: [PATCH] Add support for --keep-going in cron mode Fixes #154 --- letsencrypt.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/letsencrypt.sh b/letsencrypt.sh index c596d11..6f5b63e 100755 --- a/letsencrypt.sh +++ b/letsencrypt.sh @@ -754,7 +754,12 @@ command_sign_domains() { fi # shellcheck disable=SC2086 - sign_domain ${line} + if [[ "${PARAM_KEEP_GOING:-}" = "yes" ]]; then + sign_domain ${line} & + wait $! || true + else + sign_domain ${line} + fi done # remove temporary domains.txt file if used @@ -995,6 +1000,12 @@ main() { fi ;; + # PARAM_Usage: --keep-going (-g) + # PARAM_Description: Keep going after encountering an error while creating/renewing multiple certificates in cron mode + --keep-going|-g) + PARAM_KEEP_GOING="yes" + ;; + # PARAM_Usage: --force (-x) # PARAM_Description: Force renew of certificate even if it is longer valid than value in RENEW_DAYS --force|-x) -- 2.39.5