Skipping LE renewing after 7 attempts

This commit is contained in:
myvesta 2020-04-30 01:17:52 +02:00 committed by GitHub
commit 14aad370ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,7 +31,7 @@ for user in $($BIN/v-list-users plain |cut -f 1); do
for domain in $(search_objects 'web' 'LETSENCRYPT' 'yes' 'DOMAIN'); do
fail_counter=$(get_web_counter "$user" "$domain" 'LETSENCRYPT_FAIL_COUNT')
if [[ "$fail_counter" -ge 3 ]]; then
if [[ "$fail_counter" -ge 7 ]]; then
echo "$domain failed $fail_counter times for LetsEncrypt renewing, skipping"
continue;
fi