Fix notifications

This commit is contained in:
thorstenspille 2024-06-23 17:04:19 +02:00
parent 81b6b17fd0
commit 6a4672bb37

View File

@ -561,7 +561,12 @@ ask_mail_config(){
set_notification() {
if [ $mailconfig -gt 0 ]; then
cat << EOF > /etc/pve/notifications.cfg
smtp: $smtphost
matcher: default-matcher
comment Route all notifications to mail-to-root
mode all
target smtp-notification
smtp: smtp-notification
mailto-user root@pam
mailto $recipientaddress
author $displayname
@ -576,7 +581,7 @@ EOF
EOF
cat << EOF > /etc/pve/priv/notifications.cfg
smtp: $smtphost
smtp: smtp-notification
password $password
EOF
fi