mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Fixes TLS error on old PowerShell versions for GitHub connections
Fixes #41
This commit is contained in:
parent
a724f486f8
commit
58d2aa7403
1 changed files with 2 additions and 0 deletions
|
|
@ -8,6 +8,8 @@ function Get-IcingaPowerShellModuleArchive()
|
||||||
|
|
||||||
$ProgressPreference = "SilentlyContinue";
|
$ProgressPreference = "SilentlyContinue";
|
||||||
$Tag = 'master';
|
$Tag = 'master';
|
||||||
|
# Fix TLS errors while connecting to GitHub with old PowerShell versions
|
||||||
|
[Net.ServicePointManager]::SecurityProtocol = "tls12, tls11";
|
||||||
|
|
||||||
if ([string]::IsNullOrEmpty($DownloadUrl)) {
|
if ([string]::IsNullOrEmpty($DownloadUrl)) {
|
||||||
if ((Get-IcingaAgentInstallerAnswerInput -Prompt ([string]::Format('Do you provide a custom repository for "{0}"?', $ModuleName)) -Default 'n').result -eq 1) {
|
if ((Get-IcingaAgentInstallerAnswerInput -Prompt ([string]::Format('Do you provide a custom repository for "{0}"?', $ModuleName)) -Default 'n').result -eq 1) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue