mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-06-28 15:55:47 +02:00
Land #444, Fix Powershell SSL/TLS error for chocolatey download
This commit is contained in:
commit
6ef3902e25
|
@ -185,7 +185,7 @@
|
|||
{
|
||||
"type": "powershell",
|
||||
"inline": [
|
||||
"$env:chocolateyVersion = '0.10.8'; iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))"
|
||||
"$env:chocolateyVersion = '0.10.8'; [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))"
|
||||
],
|
||||
"pause_before": "60s"
|
||||
},
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
$ChocoInstallPath = "$env:SystemDrive\ProgramData\Chocolatey\bin"
|
||||
|
||||
if (!(Test-Path $ChocoInstallPath)) {
|
||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
||||
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
|
||||
}
|
Loading…
Reference in New Issue
Block a user