Fixes spelling and adding default values

This commit is contained in:
Lord Hepipud 2019-10-31 16:35:50 +01:00
parent c2fce7042f
commit aa7452beb3

View file

@ -80,7 +80,7 @@ function Start-IcingaAgentInstallWizard()
} }
if ([string]::IsNullOrEmpty($AgentVersion)) { if ([string]::IsNullOrEmpty($AgentVersion)) {
$AgentVersion = (Get-IcingaAgentInstallerAnswerInput -Prompt 'Please specify the version you wish to install ("latest", "snapshot", or a version like "2.11.0")' -Default 'v').answer; $AgentVersion = (Get-IcingaAgentInstallerAnswerInput -Prompt 'Please specify the version you wish to install ("latest", "snapshot", or a version like "2.11.0")' -Default 'v' -DefaultInput 'latest').answer;
$InstallerArguments += "-AgentVersion '$AgentVersion'"; $InstallerArguments += "-AgentVersion '$AgentVersion'";
Write-Host ([string]::Format('Installing Icinga Version: "{0}"', $AgentVersion)); Write-Host ([string]::Format('Installing Icinga Version: "{0}"', $AgentVersion));
@ -254,7 +254,7 @@ function Start-IcingaAgentInstallWizard()
} }
if ($null -eq $InstallFrameworkService) { if ($null -eq $InstallFrameworkService) {
if ((Get-IcingaAgentInstallerAnswerInput -Prompt 'Do you want to install the PowerShell Framework as Service?' -Default 'y').result -eq 1) { if ((Get-IcingaAgentInstallerAnswerInput -Prompt 'Do you want to install the PowerShell Framework as a Service?' -Default 'y').result -eq 1) {
$result = Get-IcingaFrameworkServiceBinary; $result = Get-IcingaFrameworkServiceBinary;
$InstallerArguments += "-InstallFrameworkService 1"; $InstallerArguments += "-InstallFrameworkService 1";
$InstallerArguments += [string]::Format("-FrameworkServiceUrl '{0}'", $result.FrameworkServiceUrl); $InstallerArguments += [string]::Format("-FrameworkServiceUrl '{0}'", $result.FrameworkServiceUrl);