Skip to content

Commit eacb423

Browse files
authored
Merge pull request #3546 from freedomofpress/resolve-do-release-notification
Disable do-release-upgrade OSSEC notification
2 parents f0aab49 + d23134b commit eacb423

File tree

1 file changed

+5
-0
lines changed
  • install_files/securedrop-config/DEBIAN

1 file changed

+5
-0
lines changed

install_files/securedrop-config/DEBIAN/postinst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
set -e
55
set -x
66

7+
disable_upgrade_prompt() {
8+
# Disable do-release-upgrade notification
9+
sed -i 's/Prompt=.*/Prompt=never/' /etc/update-manager/release-upgrades || true
10+
}
711
remove_2fa_tty_req() {
812
# The goal here is to remove legacy 2FA req on TTY logins
913
# Lets prevent this from bombing out the install though if it fails
@@ -23,6 +27,7 @@ case "$1" in
2327
sed -i 's/deb\.torproject\.org\/torproject\.org/tor-apt.freedom.press/g' "$apt_security_list"
2428
fi
2529
remove_2fa_tty_req
30+
disable_upgrade_prompt
2631
;;
2732

2833
abort-upgrade|abort-remove|abort-deconfigure)

0 commit comments

Comments
 (0)