mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-08-26 12:46:08 +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 glob
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import tarfile
|
import tarfile
|
||||||
@ -140,6 +141,8 @@ def subcommand_export(arguments):
|
|||||||
arguments.filename
|
arguments.filename
|
||||||
], check=True)
|
], check=True)
|
||||||
|
|
||||||
|
shutil.chown(arguments.filename, user='plinth', group='plinth')
|
||||||
|
|
||||||
|
|
||||||
def subcommand_list_exports(arguments):
|
def subcommand_list_exports(arguments):
|
||||||
"""List exported backup archive files."""
|
"""List exported backup archive files."""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user