mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +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:
1 file changed
+4
-1
+4
-1
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user