Skip to content

Commit 1363764

Browse files
authored
Merge pull request #567 from Icinga:fix/always_set_certificate_folder_permission
Fix: Missing permission update for certificate directory Fixes missing certificate folder permission update on every change for the Icinga Agent user, as the folder wasn't present by default before, which changed with v1.10.0
2 parents 08b1d69 + c5c42ef commit 1363764

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/core/icingaagent/setters/Set-IcingaUserPermissions.psm1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ function Set-IcingaUserPermissions()
55
[switch]$Remove = $FALSE
66
);
77

8-
Set-IcingaAcl "$Env:ProgramData\icinga2\etc" -IcingaUser $IcingaUser -Remove:$Remove;
9-
Set-IcingaAcl "$Env:ProgramData\icinga2\var" -IcingaUser $IcingaUser -Remove:$Remove;
10-
Set-IcingaAcl (Get-IcingaCacheDir) -IcingaUser $IcingaUser -Remove:$Remove;
8+
Set-IcingaAcl -Directory "$Env:ProgramData\icinga2\etc" -IcingaUser $IcingaUser -Remove:$Remove;
9+
Set-IcingaAcl -Directory "$Env:ProgramData\icinga2\var" -IcingaUser $IcingaUser -Remove:$Remove;
10+
Set-IcingaAcl -Directory (Get-IcingaCacheDir) -IcingaUser $IcingaUser -Remove:$Remove;
1111
Set-IcingaAcl -Directory (Get-IcingaPowerShellConfigDir) -IcingaUser $IcingaUser -Remove:$Remove;
12+
Set-IcingaAcl -Directory (Join-Path -Path (Get-IcingaFrameworkRootPath) -ChildPath 'certificate') -IcingaUser $IcingaUser -Remove:$Remove;
1213
}

0 commit comments

Comments
 (0)