shutdown: fix perms on /target/var/log/installer

This commit is contained in:
Dan Bungert 2023-10-10 22:55:15 +01:00
parent 7549af4ad0
commit 2d7210557b
1 changed files with 2 additions and 2 deletions

View File

@ -114,8 +114,8 @@ class ShutdownController(SubiquityController):
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: