mirror of
https://github.com/bashclub/proxmox-zfs-postinstall.git
synced 2024-11-07 18:31:58 +01:00
Fix notifications
This commit is contained in:
parent
81b6b17fd0
commit
6a4672bb37
@ -561,7 +561,12 @@ ask_mail_config(){
|
|||||||
set_notification() {
|
set_notification() {
|
||||||
if [ $mailconfig -gt 0 ]; then
|
if [ $mailconfig -gt 0 ]; then
|
||||||
cat << EOF > /etc/pve/notifications.cfg
|
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-user root@pam
|
||||||
mailto $recipientaddress
|
mailto $recipientaddress
|
||||||
author $displayname
|
author $displayname
|
||||||
@ -576,7 +581,7 @@ EOF
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat << EOF > /etc/pve/priv/notifications.cfg
|
cat << EOF > /etc/pve/priv/notifications.cfg
|
||||||
smtp: $smtphost
|
smtp: smtp-notification
|
||||||
password $password
|
password $password
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user