Update v-update-letsencrypt-ssl

This commit is contained in:
myvesta 2021-04-13 18:25:56 +02:00 committed by GitHub
commit be9710f9ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,11 +35,10 @@ for user in $($BIN/v-list-users plain |cut -f 1); do
fail_counter=$(get_web_counter "$user" "$domain" 'LETSENCRYPT_FAIL_COUNT')
if [[ "$fail_counter" -ge 7 ]]; then
if [[ "$fail_counter" -eq 7 ]]; then
if [ "$hostname" = "$domain" ]; then
if [ -z "$SKIP_HOSTNAME_LETSENCRIPT_RENEWING_WARNING" ]; then
send_email_to_admin "LetsEncrypt renewing hostname $hostname" "Warning: hostname $domain failed for LetsEncrypt renewing"
fi
fail_counter=$(alter_web_counter "$user" "$domain" 'LETSENCRYPT_FAIL_COUNT')
send_email_to_admin "LetsEncrypt renewing hostname $hostname" "Warning: hostname $domain failed for LetsEncrypt renewing"
fi
fi