From 047a15b652869677b553fcfc052414611db41e28 Mon Sep 17 00:00:00 2001 From: heartsucker Date: Mon, 11 Feb 2019 12:42:45 +0100 Subject: [PATCH] revert update script changes once we move to xenial --- install_files/securedrop-config/DEBIAN/postinst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/install_files/securedrop-config/DEBIAN/postinst b/install_files/securedrop-config/DEBIAN/postinst index 58cbf8b63a..5717d8e2f8 100755 --- a/install_files/securedrop-config/DEBIAN/postinst +++ b/install_files/securedrop-config/DEBIAN/postinst @@ -20,6 +20,14 @@ update_release_available_script() { done } +revert_update_release_available_script() { + for file in /usr/lib/ubuntu-release-upgrader/check-new-release /var/lib/ubuntu-release-upgrader/release-upgrade-available; do + if [ -f $file ]; then + sed -i "s|Visit https://securedrop\\.org/xenial-upgrade for more information|Run 'do-release-upgrade' to upgrade to it.|" "$file" + fi + done +} + # Issue #4104 # Set Prompt=never on Xenial # Set Prompt=lts on Trusty @@ -32,6 +40,7 @@ update_release_prompt() { update_release_available_script else sed -i 's/Prompt=.*/Prompt=never/' "$upgrade_config" + revert_update_release_available_script fi }