From 6ea1a06a129751fa6472d1509661f5ad8e0fc8c7 Mon Sep 17 00:00:00 2001 From: Scott Bronson Date: Tue, 8 Nov 2016 18:41:02 -0800 Subject: [PATCH] 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. --- setup/system.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/setup/system.sh b/setup/system.sh index 293ac68..bde013a 100755 --- a/setup/system.sh +++ b/setup/system.sh @@ -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