mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Backups: Cleanup and improved error handling
- fixes issues as supposed by jvalleroy - new repositories always get a UUID so they can immediately be fully used (mounted, queried etc) also before saving them - remove test connection page -- errors are shown on form submission - improved error handling when creating remote repositories Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
eab8991b54
commit
3724dac9e6
10 files changed
+56
-94
No files matched your search
+3
-3
@@ -48,8 +48,8 @@ def parse_arguments():
|
||||
help='unmount an ssh filesystem')
|
||||
umount.add_argument('--mountpoint', help='Mountpoint to unmount',
|
||||
required=True)
|
||||
is_mounted = subparsers.add_parser('is-mounted',
|
||||
help='Check whether an sshfs is mouned')
|
||||
is_mounted = subparsers.add_parser(
|
||||
'is-mounted', help='Check whether a mountpoint is mounted')
|
||||
is_mounted.add_argument('--mountpoint', help='Mountpoint to check',
|
||||
required=True)
|
||||
|
||||
@@ -83,7 +83,7 @@ def subcommand_mount(arguments):
|
||||
|
||||
|
||||
def subcommand_umount(arguments):
|
||||
"""Show repository information."""
|
||||
"""Unmount a mountpoint."""
|
||||
run(['umount', arguments.mountpoint])
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user