We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 401ac2e commit 714827bCopy full SHA for 714827b
lib/core/icingaagent/getters/Get-IcingaAgentBinary.psm1
@@ -1,6 +1,10 @@
1
function Get-IcingaAgentBinary()
2
{
3
$IcingaRootDir = Get-IcingaAgentRootDirectory;
4
+ if ([string]::IsNullOrEmpty($IcingaRootDir)) {
5
+ throw 'The Icinga Agent seems not to be installed';
6
+ }
7
+
8
$IcingaBinary = (Join-Path -Path $IcingaRootDir -ChildPath '\sbin\icinga2.exe');
9
10
if ((Test-Path $IcingaBinary) -eq $FALSE) {
0 commit comments