mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-04 08:13:38 +00:00
backups: Make plinth the owner of the backup archives
Changing the ownership of the backup archives from "root" to "plinth" fixes the permission errors when downloading backup archives. Fixes #1402 Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
cf6d0aa938
commit
6be6b847fd
@ -24,6 +24,7 @@ import argparse
|
||||
import glob
|
||||
import json
|
||||
import os
|
||||
import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
import tarfile
|
||||
@ -140,6 +141,8 @@ def subcommand_export(arguments):
|
||||
arguments.filename
|
||||
], check=True)
|
||||
|
||||
shutil.chown(arguments.filename, user='plinth', group='plinth')
|
||||
|
||||
|
||||
def subcommand_list_exports(arguments):
|
||||
"""List exported backup archive files."""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user