Skip to content

Commit

Permalink
Merge pull request #1835 from dbungert/target-log-dir-mantic
Browse files Browse the repository at this point in the history
shutdown: fix perms on /target/var/log/installer
  • Loading branch information
mwhudson authored Oct 10, 2023
2 parents 7717b0d + 5950460 commit 01fd8d2
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 01fd8d2

Please sign in to comment.