Adds migration tasks to v1.12.5

This commit is contained in:
Lord Hepipud 2026-02-02 10:25:14 +01:00
parent a295f6840a
commit 416d85dc89

View file

@ -156,4 +156,14 @@ function Invoke-IcingaForWindowsMigration()
Set-IcingaForWindowsMigration -MigrationVersion (New-IcingaVersionObject -Version '1.12.4');
}
if (Test-IcingaForWindowsMigration -MigrationVersion (New-IcingaVersionObject -Version '1.12.5')) {
Write-IcingaConsoleNotice 'Applying pending migrations required for Icinga for Windows v1.12.5';
# Fixes potential permission issues with the Icinga Service User and the SeServiceLogonRight privilege
$ServiceUser = Get-IcingaServiceUser;
Set-IcingaUserPermissions -IcingaUser $ServiceUser;
Set-IcingaForWindowsMigration -MigrationVersion (New-IcingaVersionObject -Version '1.12.5');
}
}