mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-11 08:23:49 +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
|
||||
], check=True)
|
||||
|
||||
shutil.chown(arguments.filename, user='plinth', group='plinth')
|
||||
try:
|
||||
shutil.chown(arguments.filename, user='plinth', group='plinth')
|
||||
except PermissionError:
|
||||
pass
|
||||
|
||||
|
||||
def subcommand_list_exports(arguments):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user