suppress Ubuntu's upgrade prompts (#992)

On every login we're notified:

  New release '16.04.1 LTS' available.
  Run 'do-release-upgrade' to upgrade to it.

Disable this so that an eager yet inattentive admin
doesn't accidentally follow these instructions.
This commit is contained in:
Scott Bronson 2016-11-08 18:41:02 -08:00 committed by Joshua Tauberer
parent 2b00478b8b
commit 6ea1a06a12
1 changed files with 6 additions and 0 deletions

View File

@ -119,6 +119,12 @@ apt_install python3 python3-dev python3-pip \
haveged pollinate \
unattended-upgrades cron ntp fail2ban
# ### Suppress Upgrade Prompts
# Since Mail-in-a-Box might jump straight to 18.04 LTS, there's no need
# to be reminded about 16.04 on every login.
tools/editconf.py /etc/update-manager/release-upgrades Prompt=never
rm -f /var/lib/ubuntu-release-upgrader/release-upgrade-available
# ### Set the system timezone
#
# Some systems are missing /etc/timezone, which we cat into the configs for