Skip to content

Commit

Permalink
Disables LTS upgrade prompt for Focal
Browse files Browse the repository at this point in the history
We don't want the OS to nag admins, since we want to ensure the next LTS
is fully supported by SecureDrop before recommending an in-place
upgrade. Disable the prompt on Focal, same as we've done for Xenial in
the past.

Closes #5782.
  • Loading branch information
Conor Schaefer authored and emkll committed Feb 12, 2021
1 parent f4b7805 commit a959b25
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions install_files/securedrop-config-focal/DEBIAN/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,17 @@
set -e
set -x

# Issue #5782
# Set Prompt=never for distro upgrades
update_release_prompt() {
set -e
upgrade_config='/etc/update-manager/release-upgrades'
sed -i 's/Prompt=.*/Prompt=never/' "$upgrade_config"
}

case "$1" in
configure)
update_release_prompt
# Configuration required for unattended-upgrades
cp /opt/securedrop/20auto-upgrades /etc/apt/apt.conf.d/
cp /opt/securedrop/50unattended-upgrades /etc/apt/apt.conf.d/
Expand Down

0 comments on commit a959b25

Please sign in to comment.