mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-13 10:30:16 +00:00
backups: Un-mount SSH repositories before deleting them
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
parent
6821d73025
commit
2c721659f4
@ -345,6 +345,7 @@ class SshBorgRepository(BorgRepository):
|
|||||||
|
|
||||||
def remove_repository(self):
|
def remove_repository(self):
|
||||||
"""Remove a repository from the kvstore and delete its mountpoint"""
|
"""Remove a repository from the kvstore and delete its mountpoint"""
|
||||||
|
self.umount()
|
||||||
network_storage.delete(self.uuid)
|
network_storage.delete(self.uuid)
|
||||||
try:
|
try:
|
||||||
if os.path.exists(self.mountpoint):
|
if os.path.exists(self.mountpoint):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user