Adds migration tasks for v1.14 for updating permissions

This commit is contained in:
Lord Hepipud 2025-12-23 17:31:27 +01:00
parent 25f1814473
commit f24483c4b2

View file

@ -174,4 +174,16 @@ function Invoke-IcingaForWindowsMigration()
Set-IcingaForWindowsMigration -MigrationVersion (New-IcingaVersionObject -Version '1.13.3');
}
if (Test-IcingaForWindowsMigration -MigrationVersion (New-IcingaVersionObject -Version '1.14.0')) {
Write-IcingaConsoleNotice 'Applying pending migrations required for Icinga for Windows v1.14.0';
# Fixes potential permission issues with the Icinga Service User and the SeServiceLogonRight privilege
$ServiceUser = Get-IcingaServiceUser;
$ServiceUserSID = Get-IcingaUserSID $ServiceUser;
Update-IcingaWindowsUserPermission -SID $ServiceUserSID;
Set-IcingaForWindowsMigration -MigrationVersion (New-IcingaVersionObject -Version '1.14.0');
}
}