mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
snapshots: Fix for permissions issue when updating configuration
- Change `configure` command to `set-config` for consistency with `get-config` - Run `set-config` as superuser Fixes freedombox-team/plinth#1290 Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
41641491bb
commit
8416c0831d
2 files changed
+3
-6
No files matched your search
+2
-2
@@ -47,7 +47,7 @@ def parse_arguments():
|
||||
subparser = subparsers.add_parser('delete-all',
|
||||
help='Delete all the snapshots')
|
||||
|
||||
subparser = subparsers.add_parser('configure',
|
||||
subparser = subparsers.add_parser('set-config',
|
||||
help='Configure automatic snapshots')
|
||||
subparser.add_argument('config')
|
||||
|
||||
@@ -196,7 +196,7 @@ def _get_delete_arg(range_list):
|
||||
return range_list[0] + '-' + range_list[-1]
|
||||
|
||||
|
||||
def subcommand_configure(arguments):
|
||||
def subcommand_set_config(arguments):
|
||||
command = ['snapper', 'set-config', arguments.config]
|
||||
subprocess.run(command, check=True)
|
||||
|
||||
|
||||
Reference in new issue
Block a user