mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Fixes AcceptConnections argument
This commit is contained in:
parent
0c5076ad77
commit
2e69ece84c
1 changed files with 3 additions and 1 deletions
|
|
@ -252,13 +252,15 @@ function Start-IcingaAgentInstallWizard()
|
|||
if ($null -eq $AcceptConnections) {
|
||||
if ((Get-IcingaAgentInstallerAnswerInput -Prompt 'Is this Agent able to connect to its parent node for certificate generation and general communication?' -Default 'y').result -eq 1) {
|
||||
$CanConnectToParent = $TRUE;
|
||||
$AcceptConnections = 1;
|
||||
$InstallerArguments += ("-AcceptConnections 1");
|
||||
} else {
|
||||
$AcceptConnections = 0;
|
||||
$InstallerArguments += ("-AcceptConnections 0");
|
||||
}
|
||||
} elseif ($AcceptConnections) {
|
||||
$CanConnectToParent = $TRUE;
|
||||
$InstallerArguments += ("-AcceptConnections 1");
|
||||
$InstallerArguments += ("-AcceptConnections $AcceptConnections");
|
||||
}
|
||||
|
||||
if ($null -eq $AddFirewallRule) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue