Skip to content

Commit

Permalink
revert update script changes once we move to xenial
Browse files Browse the repository at this point in the history
  • Loading branch information
heartsucker committed Feb 11, 2019
1 parent b2efbea commit 047a15b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions install_files/securedrop-config/DEBIAN/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}

Expand Down

0 comments on commit 047a15b

Please sign in to comment.