mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
backups: Handle permission error during chown
This happens on FAT file systems, where chown operation is not possible. Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
6be6b847fd
commit
edcf4a5619
@ -141,7 +141,10 @@ def subcommand_export(arguments):
|
|||||||
arguments.filename
|
arguments.filename
|
||||||
], check=True)
|
], check=True)
|
||||||
|
|
||||||
|
try:
|
||||||
shutil.chown(arguments.filename, user='plinth', group='plinth')
|
shutil.chown(arguments.filename, user='plinth', group='plinth')
|
||||||
|
except PermissionError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def subcommand_list_exports(arguments):
|
def subcommand_list_exports(arguments):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user