Skip to content

Commit

Permalink
resulttool/store: Fix permissions of logarchive
Browse files Browse the repository at this point in the history
We want the results directory to be visable to other users, tweak the
permissions of the created directory to ensure this is the case.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
  • Loading branch information
rpurdie committed Nov 26, 2024
1 parent c82a1b7 commit ed9d887
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/lib/resulttool/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ def store(args, logger):
if args.logfile_archive:
logdir = args.logfile_archive + "/" + tagname
shutil.copytree(tempdir, logdir)
os.chmod(logdir, 0o755)
for root, dirs, files in os.walk(logdir):
for name in files:
if not name.endswith(".log"):
Expand Down

0 comments on commit ed9d887

Please sign in to comment.