mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2026-02-03 04:09:29 -05:00
Fixes IfW service installation on certain Windows environment
This commit is contained in:
parent
fe10fe3755
commit
2263c817dd
2 changed files with 11 additions and 1 deletions
|
|
@ -11,6 +11,16 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
|
||||||
|
|
||||||
[Issues and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/38)
|
[Issues and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/38)
|
||||||
|
|
||||||
|
## 1.13.2 (2025-02-03)
|
||||||
|
|
||||||
|
[Issues and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/40)
|
||||||
|
|
||||||
|
* [#780](https://github.com/Icinga/icinga-powershell-framework/issues/780) Fixes Icinga for Windows service installation not working properly on certain Windows environments
|
||||||
|
|
||||||
|
### Bugfixes
|
||||||
|
|
||||||
|
* [#778](https://github.com/Icinga/icinga-powershell-framework/issues/778) Fixes test commands like `Test-IcingaForWindows` failing because of wrong assigned ServiceData information.
|
||||||
|
|
||||||
## 1.13.1 (2025-01-31)
|
## 1.13.1 (2025-01-31)
|
||||||
|
|
||||||
[Issues and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/39)
|
[Issues and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/39)
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ Use-Icinga -Minimal;
|
||||||
try {
|
try {
|
||||||
$SvcData = Get-IcingaServices "$ServiceName" -ErrorAction Stop;
|
$SvcData = Get-IcingaServices "$ServiceName" -ErrorAction Stop;
|
||||||
|
|
||||||
if ($null -ne $SvcData) {
|
if ($null -ne $SvcData -And $SvcData.Count -ne 0) {
|
||||||
$ServiceConfig = $SvcData."$ServiceName".configuration;
|
$ServiceConfig = $SvcData."$ServiceName".configuration;
|
||||||
$ServiceMeta = $SvcData."$ServiceName".metadata;
|
$ServiceMeta = $SvcData."$ServiceName".metadata;
|
||||||
$ServiceData.Status = [string]$ServiceConfig.Status.value;
|
$ServiceData.Status = [string]$ServiceConfig.Status.value;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue