Skip to content

Commit

Permalink
shutdown: fix perms on /target/var/log/installer
Browse files Browse the repository at this point in the history
(cherry picked from commit 2d72105)
  • Loading branch information
dbungert committed Oct 10, 2023
1 parent 8b67e65 commit 5950460
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions subiquity/server/controllers/shutdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ async def copy_logs_to_target(self, context):
await self.app.command_runner.run(
["cp", "-aT", "/var/log/installer", target_logs]
)
# Close the permissions from group writes on the target.
set_log_perms(target_logs, group_write=False)
# explicitly setting the expected permissions on this dir
set_log_perms(target_logs, mode=0o770, group="adm")

journal_txt = os.path.join(target_logs, "installer-journal.txt")
try:
Expand Down

0 comments on commit 5950460

Please sign in to comment.