mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Improve question for Firewall to be always printed
This commit is contained in:
parent
5da5ab5695
commit
0c5076ad77
1 changed files with 7 additions and 9 deletions
|
|
@ -261,15 +261,13 @@ function Start-IcingaAgentInstallWizard()
|
|||
$InstallerArguments += ("-AcceptConnections 1");
|
||||
}
|
||||
|
||||
if ($AcceptConnections -eq 0) {
|
||||
if ($null -eq $AddFirewallRule) {
|
||||
if ((Get-IcingaAgentInstallerAnswerInput -Prompt ([string]::Format('Do you want to open the Windows Firewall for incoming traffic on Port "{0}"?', $CAPort)) -Default 'y').result -eq 1) {
|
||||
$InstallerArguments += "-AddFirewallRule 1";
|
||||
$AddFirewallRule = $TRUE;
|
||||
} else {
|
||||
$InstallerArguments += "-AddFirewallRule 0";
|
||||
$AddFirewallRule = $FALSE;
|
||||
}
|
||||
if ($null -eq $AddFirewallRule) {
|
||||
if ((Get-IcingaAgentInstallerAnswerInput -Prompt ([string]::Format('Do you want to open the Windows Firewall for incoming traffic on Port "{0}"?', $CAPort)) -Default 'y').result -eq 1) {
|
||||
$InstallerArguments += "-AddFirewallRule 1";
|
||||
$AddFirewallRule = $TRUE;
|
||||
} else {
|
||||
$InstallerArguments += "-AddFirewallRule 0";
|
||||
$AddFirewallRule = $FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue