mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 21:34:12 -07:00
Update v-update-letsencrypt-ssl
This commit is contained in:
parent
6b30357f9a
commit
be9710f9ea
1 changed files with 3 additions and 4 deletions
|
@ -35,13 +35,12 @@ 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
|
||||
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
|
||||
fi
|
||||
|
||||
if [[ "$fail_counter" -ge 7 ]]; then
|
||||
# echo "$domain failed $fail_counter times for LetsEncrypt renewing, skipping"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue