mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 07:10:15 -05:00
Merge pull request #490 from Icinga:fix/uninstall_service_component_not_working
Fix: Uninstaller for service component not working Fixes the command `Uninstall-IcingaComponent` for the `service` component which is not working.
This commit is contained in:
commit
457413bc88
2 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
* [#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
|
||||
* [#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
|
||||
|
||||
|
|
|
|||
|
|
@ -11,11 +11,11 @@ function Uninstall-IcingaComponent()
|
|||
}
|
||||
|
||||
if ($Name.ToLower() -eq 'agent') {
|
||||
return Uninstall-IcingaAgent -RemoveDataFolder:$RemovePackageFiles;
|
||||
return (Uninstall-IcingaAgent -RemoveDataFolder:$RemovePackageFiles);
|
||||
}
|
||||
|
||||
if ($Name.ToLower() -eq 'service') {
|
||||
return; Uninstall-IcingaForWindowsService -RemoveFiles:$RemovePackageFiles;
|
||||
return (Uninstall-IcingaForWindowsService -RemoveFiles:$RemovePackageFiles);
|
||||
}
|
||||
|
||||
$ModuleBase = Get-IcingaForWindowsRootPath;
|
||||
|
|
|
|||
Loading…
Reference in a new issue