mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-06-28 15:55:47 +02:00
Adjust the vagrant version requirement now that the WinRM connections have been increased.
This commit is contained in:
parent
e60dcd7fb9
commit
fd18fcce89
|
@ -1,8 +1,8 @@
|
||||||
$ErrorActionPreference = "Stop"
|
$ErrorActionPreference = "Stop"
|
||||||
|
|
||||||
$virtualBoxMinVersion = "5.0.0"
|
$virtualBoxMinVersion = "5.1.0"
|
||||||
$packerMinVersion = "0.10.0"
|
$packerMinVersion = "0.10.0"
|
||||||
$vagrantMinVersion = "1.8.1"
|
$vagrantMinVersion = "1.8.6"
|
||||||
$vagrantreloadMinVersion = "0.0.1"
|
$vagrantreloadMinVersion = "0.0.1"
|
||||||
|
|
||||||
function CompareVersions ($actualVersion, $expectedVersion, $exactMatch = $False) {
|
function CompareVersions ($actualVersion, $expectedVersion, $exactMatch = $False) {
|
||||||
|
@ -55,10 +55,10 @@ If ($(Test-Path "C:\HashiCorp\Vagrant\bin\vagrant.exe") -eq $True) {
|
||||||
$vagrantVersion = $vagrantVersion.split(" ")[1]
|
$vagrantVersion = $vagrantVersion.split(" ")[1]
|
||||||
}
|
}
|
||||||
|
|
||||||
If (CompareVersions -actualVersion $vagrantVersion -expectedVersion $vagrantMinVersion -exactVersion True) {
|
If (CompareVersions -actualVersion $vagrantVersion -expectedVersion $vagrantMinVersion) {
|
||||||
Write-Host "Compatible version of Vagrant found."
|
Write-Host "Compatible version of Vagrant found."
|
||||||
} else {
|
} else {
|
||||||
Write-Host "Could not find a compatible version of Vagrant at C:\HashiCorp\Vagrant\bin\. At this time only $vagrantMinVersion is supported. Please download and install it from https://releases.hashicorp.com/vagrant/1.8.1/."
|
Write-Host "Could not find a compatible version of Vagrant at C:\HashiCorp\Vagrant\bin\. Please download and install it from https://www.vagrantup.com/downloads.html."
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
min_virtualbox_ver="5.0.0"
|
min_virtualbox_ver="5.1.0"
|
||||||
min_vagrant_ver="1.8.1"
|
min_vagrant_ver="1.8.6"
|
||||||
min_packer_ver="0.10.0"
|
min_packer_ver="0.10.0"
|
||||||
min_vagrantreload_ver="0.0.1"
|
min_vagrantreload_ver="0.0.1"
|
||||||
|
|
||||||
|
@ -48,10 +48,10 @@ else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if compare_versions $(vagrant -v | cut -d' ' -f2) $min_vagrant_ver true; then
|
if compare_versions $(vagrant -v | cut -d' ' -f2) $min_vagrant_ver false; then
|
||||||
echo 'Correct version of vagrant was found.'
|
echo 'Correct version of vagrant was found.'
|
||||||
else
|
else
|
||||||
echo "A compatible version of vagrant was not found. At this time only $min_vagrant_ver is supported. Please install from here: https://releases.hashicorp.com/vagrant/1.8.1/"
|
echo "A compatible version of vagrant was not found. Please download and install it from https://www.virtualbox.org/wiki/Downloads."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user