From 2c721659f46ee3999082fcae43af27b37c36dc7e Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Thu, 27 Jun 2019 12:18:12 -0700 Subject: [PATCH] backups: Un-mount SSH repositories before deleting them Signed-off-by: Sunil Mohan Adapa Reviewed-by: Joseph Nuthalapati --- plinth/modules/backups/repository.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plinth/modules/backups/repository.py b/plinth/modules/backups/repository.py index 0d2de90ce..cd19b111d 100644 --- a/plinth/modules/backups/repository.py +++ b/plinth/modules/backups/repository.py @@ -345,6 +345,7 @@ class SshBorgRepository(BorgRepository): def remove_repository(self): """Remove a repository from the kvstore and delete its mountpoint""" + self.umount() network_storage.delete(self.uuid) try: if os.path.exists(self.mountpoint):