mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2026-02-03 12:19:29 -05:00
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
This commit is contained in:
commit
136376418c
1 changed files with 4 additions and 3 deletions
|
|
@ -5,8 +5,9 @@ function Set-IcingaUserPermissions()
|
|||
[switch]$Remove = $FALSE
|
||||
);
|
||||
|
||||
Set-IcingaAcl "$Env:ProgramData\icinga2\etc" -IcingaUser $IcingaUser -Remove:$Remove;
|
||||
Set-IcingaAcl "$Env:ProgramData\icinga2\var" -IcingaUser $IcingaUser -Remove:$Remove;
|
||||
Set-IcingaAcl (Get-IcingaCacheDir) -IcingaUser $IcingaUser -Remove:$Remove;
|
||||
Set-IcingaAcl -Directory "$Env:ProgramData\icinga2\etc" -IcingaUser $IcingaUser -Remove:$Remove;
|
||||
Set-IcingaAcl -Directory "$Env:ProgramData\icinga2\var" -IcingaUser $IcingaUser -Remove:$Remove;
|
||||
Set-IcingaAcl -Directory (Get-IcingaCacheDir) -IcingaUser $IcingaUser -Remove:$Remove;
|
||||
Set-IcingaAcl -Directory (Get-IcingaPowerShellConfigDir) -IcingaUser $IcingaUser -Remove:$Remove;
|
||||
Set-IcingaAcl -Directory (Join-Path -Path (Get-IcingaFrameworkRootPath) -ChildPath 'certificate') -IcingaUser $IcingaUser -Remove:$Remove;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue