mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Fixes empty variable content
This commit is contained in:
parent
9271d7b646
commit
67e2f55802
1 changed files with 10 additions and 2 deletions
|
|
@ -363,8 +363,12 @@ function Start-IcingaAgentInstallWizard()
|
|||
} else {
|
||||
$InstallerArguments += "-Ticket '$Ticket'";
|
||||
}
|
||||
if ($null -eq $EmptyTicket) {
|
||||
$InstallerArguments += "-EmptyTicket 1"
|
||||
} else {
|
||||
$InstallerArguments += "-EmptyTicket $EmptyTicket"
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if ([string]::IsNullOrEmpty($CAFile) -And $null -eq $EmptyCA) {
|
||||
if ((Get-IcingaAgentInstallerAnswerInput -Prompt 'Is your public Icinga 2 CA (ca.crt) available on a local, network or web share?' -Default 'y').result -eq 1) {
|
||||
|
|
@ -385,9 +389,13 @@ function Start-IcingaAgentInstallWizard()
|
|||
} else {
|
||||
$InstallerArguments += "-CAFile '$CAFile'";
|
||||
}
|
||||
if ($null -eq $EmptyCA) {
|
||||
$InstallerArguments += "-EmptyCA 1"
|
||||
} else {
|
||||
$InstallerArguments += "-EmptyCA $EmptyCA"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ([string]::IsNullOrEmpty($ServiceUser)) {
|
||||
if ((Get-IcingaAgentInstallerAnswerInput -Prompt 'Do you want to change the user the Icinga Agent service is running with (Default: "NT Authority\NetworkService")?' -Default 'n').result -eq 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue