mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
ttrss: Ensure that database is removed after uninstall
- Setting ttrss/purge to 'true' in debconf is not retrained after the package has been install. So, set it again just before package removal. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
7c5c960400
commit
fdaba80de3
@ -120,6 +120,11 @@ class TTRSSApp(app_module.App):
|
||||
if not old_version:
|
||||
self.enable()
|
||||
|
||||
def uninstall(self):
|
||||
"""De-configure and uninstall the app."""
|
||||
privileged.uninstall()
|
||||
super().uninstall()
|
||||
|
||||
def force_upgrade(self, packages):
|
||||
"""Force update package to resolve conffile prompts."""
|
||||
if 'tt-rss' not in packages:
|
||||
|
||||
@ -171,3 +171,11 @@ def load_augeas():
|
||||
aug.set('/augeas/load/Phpvars/incl[last() + 1]', DATABASE_FILE)
|
||||
aug.load()
|
||||
return aug
|
||||
|
||||
|
||||
@privileged
|
||||
def uninstall():
|
||||
"""Ensure that the database is removed."""
|
||||
# This setting set before deb package installation is not retrained,
|
||||
# somehow.
|
||||
action_utils.debconf_set_selections(['tt-rss tt-rss/purge boolean true'])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user