How to disable release upgrade notification emails? - Ask Ubuntu
i have ubuntu 14.04 server installation consistently sends weekly email, root user, following content:
/etc/cron.weekly/update-notifier-common: new release '16.04.1 lts' available. run 'do-release-upgrade' upgrade it.
how stop these emails, without upgrading 16.04? there method doesn't involve disabling script mentioned in first line of email?
ideally i'd allow /etc/cron.weekly/update-notifier-common
continue run, calling /usr/lib/ubuntu-release-upgrader/release-upgrade-motd
, /usr/lib/ubuntu-release-upgrader/check-new-release
scripts, stop new release messages. useful these scripts still warn if current release becomes eol.
by default cron
sends mail email address mentioned in mailto
environment variable on crontab
, presumably have set email address, stdout/stderr cron
job sent email address.
the output /usr/lib/ubuntu-release-upgrader/release-upgrade-motd
script (run weekly job /etc/cron.weekly/update-notifier-common
) checks new version, , dump content of /var/lib/ubuntu-release-upgrader/release-upgrade-available
file.
you have few options:
disable job
redirect stdout/stderr script
/dev/null
set
mailto=""
no mail sent./usr/sbin/anacron
exists script runanacron
, setting in/etc/anacrontab
too.
Comments
Post a Comment