Merge pull request #805 from Icinga:fix/force_service_install_on_wizard

Fix: Icinga for Windows installer to always force service installation

Fixes Icinga for Windows installer to always force the installation of the service, to ensure it is present
This commit is contained in:
Lord Hepipud 2025-04-22 13:22:26 +02:00 committed by GitHub
commit bf30c1a9ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -18,6 +18,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
### Bugfixes
* [#785](https://github.com/Icinga/icinga-powershell-framework/issues/785) Fixes Icinga for Windows freezing during loading in case the `config.json` is empty
* [#786](https://github.com/Icinga/icinga-powershell-framework/issues/786) Fixes Icinga for Windows installer to always force the installation of the service, to ensure it is present
* [#787](https://github.com/Icinga/icinga-powershell-framework/pull/787) Fixes the return value in case the `Agent` component could not be installed from `$FALSE` to `null`
* [#796](https://github.com/Icinga/icinga-powershell-framework/issues/796) [#798](https://github.com/Icinga/icinga-powershell-framework/issues/798) Fixes an issue with the new check handling, which did not properly convert values from checks to the correct performance data values and base values in some cases
* [#797](https://github.com/Icinga/icinga-powershell-framework/issues/797) Fixes plugins throwing `UNKNOWN` in case `-TresholdInterval` is used for Metrics over Time, when checks are newly registered and checked, before the first MoT is executed and collected

View file

@ -237,7 +237,7 @@ function Start-IcingaForWindowsInstallation()
Set-IcingaPowerShellConfig -Path 'Framework.Icinga.IcingaForWindowsService' -Value $WindowsServiceDir;
Set-IcingaInternalPowerShellServicePassword -Password (ConvertTo-IcingaSecureString $ServicePassword);
Install-IcingaComponent -Name 'service' -Release -Confirm;
Install-IcingaComponent -Name 'service' -Release -Confirm -Force;
Register-IcingaBackgroundDaemon -Command 'Start-IcingaServiceCheckDaemon';
}