mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Fixes package manifest reader on Win 2012 R2
This commit is contained in:
parent
126ac28ea2
commit
8ed242ad50
2 changed files with 5 additions and 1 deletions
|
|
@ -11,6 +11,10 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
|
|||
|
||||
[Issue and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/23?closed=1)
|
||||
|
||||
### Bugfixes
|
||||
|
||||
* [#529](https://github.com/Icinga/icinga-powershell-framework/pull/529) Fixes package manifest reader for Icinga for Windows components on Windows 2012 R2 and older
|
||||
|
||||
### Enhancements
|
||||
|
||||
* [#40](https://github.com/Icinga/icinga-powershell-framework/issues/40) Adds support to set service recovery for the Icinga Agent and Icinga for Windows service, to restart them in case of a crash or error
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ function Read-IcingaPackageManifest()
|
|||
$FileName = $entry.Name.Replace('.psd1', '');
|
||||
$FilePath = $entry.FullName.Replace($entry.Name, '');
|
||||
$FileStream = $entry.Open();
|
||||
$FileReader = [System.IO.StreamReader]::new($FileStream);
|
||||
$FileReader = New-Object 'System.IO.StreamReader'($FileStream);
|
||||
$PackageManifestContent = $FileReader.ReadToEnd();
|
||||
$FileReader.Dispose();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue