有什么方法可以在ubuntu中自定义无人值守的升级结果邮件吗?
/etc/apt/apt.conf.d/50unattended-upgrades
文件中的当前配置-
// Send email to this address for problems or packages upgrades
// If empty or unset then no email is sent, make sure that you
// have a working mail setup on your system. The package 'mailx'
// must be installed or anything that provides /usr/bin/mail.
//Unattended-Upgrade::Mail "root@localhost";
每次运行都会发送一封电子邮件。相反,我想对其进行自定义以仅在发生错误时发送。有什么办法可以配置吗?