mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2026-02-02 19:59:31 -05:00
Adds migration tasks for v1.14 for updating permissions
This commit is contained in:
parent
25f1814473
commit
f24483c4b2
1 changed files with 12 additions and 0 deletions
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue