Update v-update-letsencrypt-ssl

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

View file

@ -38,9 +38,7 @@ for user in $($BIN/v-list-users plain |cut -f 1); do
if [[ "$fail_counter" -ge 7 ]]; then
if [ "$hostname" = "$domain" ]; then
if [ -z "$SKIP_HOSTNAME_LETSENCRIPT_RENEWING_WARNING" ]; then
email=$(grep CONTACT $VESTA/data/users/admin/user.conf)
email=$(echo "$email" | cut -f 2 -d "'")
echo "hostname $domain failed for LetsEncrypt renewing" | $SENDMAIL -s "LetsEncrypt renewing hostname $hostname" "$email" 'yes'
send_email_to_admin "LetsEncrypt renewing hostname $hostname" "Warning: hostname $domain failed for LetsEncrypt renewing"
fi
fi
fi