Fixes return value for "Agent" component installation failure

This commit is contained in:
Lord Hepipud 2025-02-07 17:31:44 +01:00
parent deeec5b91b
commit eed1efad21

View file

@ -394,7 +394,7 @@ function Install-IcingaComponent()
if ($InstallProcess.ExitCode -ne 0) {
Write-IcingaConsoleError -Message 'Failed to install component "agent": {0}{1}' -Objects $InstallProcess.Message, $InstallProcess.Error;
return $FALSE;
return;
}
$Global:Icinga.Protected.Environment.'Icinga Service'.Present = $TRUE;