[Watchdog] Retry acme check once more, redis-mailcow might be busy and not returning the wanted string

This commit is contained in:
andryyy 2019-11-24 09:19:58 +01:00
parent 79bcbe5a51
commit 78e727bcfc
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF

View File

@ -442,7 +442,7 @@ fail2ban_checks() {
acme_checks() { acme_checks() {
err_count=0 err_count=0
diff_c=0 diff_c=0
THRESHOLD=1 THRESHOLD=2
ACME_LOG_STATUS=$(redis-cli -h redis GET ACME_FAIL_TIME) ACME_LOG_STATUS=$(redis-cli -h redis GET ACME_FAIL_TIME)
if [[ -z "${ACME_LOG_STATUS}" ]]; then if [[ -z "${ACME_LOG_STATUS}" ]]; then
redis-cli -h redis SET ACME_FAIL_TIME 0 redis-cli -h redis SET ACME_FAIL_TIME 0