Is there any way to customize the unattended-upgrades results mail in ubuntu?
The current configuration in
/etc/apt/apt.conf.d/50unattended-upgrades file –
// 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";
sends an email on every run. Instead, I would like to customize it to send only on error. Is there any way I can configure that?