mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
syncthing: Completely uninstall app
Remove config file when app is uninstalled Tests: 1. Install app and add a share 2. Reinstall app and confirm that the share doesn't exist The order of the functional tests should be modified since 'test_add_remove_folder' fails Signed-off-by: nbenedek <contact@nbenedek.me> [sunil: Update docstrings, make uninstall fail-safe] [sunil: Remove the entire configuration directory] Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
1 parent
77318806c2
commit
f1d2139c2d
2 files changed
+12
No files matched your search
@@ -143,3 +143,8 @@ class SyncthingApp(app_module.App):
|
||||
sharing.remove_share(name)
|
||||
sharing.add_share(name, share['path'], new_groups,
|
||||
share['is_public'])
|
||||
|
||||
def uninstall(self):
|
||||
"""De-configure and uninstall the app."""
|
||||
super().uninstall()
|
||||
privileged.uninstall()
|
||||
Reference in new issue
Block a user