Commit 34565c19 authored by BtbN's avatar BtbN Committed by Lukas Schauer

Add support for --keep-going in cron mode

Fixes #154
parent ca0249c4
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment