From 8b8351b3653c03f99cdb71bc0eb1fea89ef4d570 Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Sun, 3 Nov 2019 16:31:02 +0100 Subject: [PATCH] Fixes cache folder permissions after update --- lib/core/framework/Install-IcingaFrameworkUpdate.psm1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/core/framework/Install-IcingaFrameworkUpdate.psm1 b/lib/core/framework/Install-IcingaFrameworkUpdate.psm1 index a6b9d4f..bce23d5 100644 --- a/lib/core/framework/Install-IcingaFrameworkUpdate.psm1 +++ b/lib/core/framework/Install-IcingaFrameworkUpdate.psm1 @@ -90,6 +90,8 @@ function Install-IcingaFrameworkUpdate() Move-Item -Path (Join-Path -Path $ModuleDirectory -ChildPath $Extracted) -Destination $NewDirectory; Unblock-IcingaPowerShellFiles -Path $NewDirectory; + # Fix new permissions for cache folder + Set-IcingaAcl -Directory (Get-IcingaCacheDir); Test-IcingaAgent;