Fixes uninstaller for service component

This commit is contained in:
Lord Hepipud 2022-03-16 16:19:25 +01:00
parent 7cf1dd4589
commit e2c2529386
2 changed files with 3 additions and 2 deletions

View file

@ -17,6 +17,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
* [#478](https://github.com/Icinga/icinga-powershell-framework/pull/478) Fixes connection option "Connecting from parent system" which is not asking for ca.crt path * [#478](https://github.com/Icinga/icinga-powershell-framework/pull/478) Fixes connection option "Connecting from parent system" which is not asking for ca.crt path
* [#479](https://github.com/Icinga/icinga-powershell-framework/pull/479) Fixes possible exceptions while trying to remove downloaded repository temp files which might still contain a file lock from virusscanners or other tasks * [#479](https://github.com/Icinga/icinga-powershell-framework/pull/479) Fixes possible exceptions while trying to remove downloaded repository temp files which might still contain a file lock from virusscanners or other tasks
* [#480](https://github.com/Icinga/icinga-powershell-framework/pull/480) Fixes service locking during Icinga Agent upgrade and ensures errors on service management are caught and printed with internal error handling * [#480](https://github.com/Icinga/icinga-powershell-framework/pull/480) Fixes service locking during Icinga Agent upgrade and ensures errors on service management are caught and printed with internal error handling
* [#490](https://github.com/Icinga/icinga-powershell-framework/pull/490) Fixes the command `Uninstall-IcingaComponent` for the `service` component which is not doing anything
### Enhancements ### Enhancements

View file

@ -11,11 +11,11 @@ function Uninstall-IcingaComponent()
} }
if ($Name.ToLower() -eq 'agent') { if ($Name.ToLower() -eq 'agent') {
return Uninstall-IcingaAgent -RemoveDataFolder:$RemovePackageFiles; return (Uninstall-IcingaAgent -RemoveDataFolder:$RemovePackageFiles);
} }
if ($Name.ToLower() -eq 'service') { if ($Name.ToLower() -eq 'service') {
return; Uninstall-IcingaForWindowsService -RemoveFiles:$RemovePackageFiles; return (Uninstall-IcingaForWindowsService -RemoveFiles:$RemovePackageFiles);
} }
$ModuleBase = Get-IcingaForWindowsRootPath; $ModuleBase = Get-IcingaForWindowsRootPath;