mirror of https://github.com/zulip/zulip.git
provisioning: Add version warning for Vagrant 1.8.7.
Vagrant 1.8.7 is not supported due to broken curl, see https://github.com/mitchellh/vagrant/issues/7997 for reference.
This commit is contained in:
parent
3d1bcb05e1
commit
287eb2cd49
|
@ -7,6 +7,18 @@ def command?(name)
|
||||||
$?.success?
|
$?.success?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if Vagrant::VERSION == "1.8.7" then
|
||||||
|
path = `which curl`
|
||||||
|
if path.include?('/opt/vagrant/embedded/bin/curl') then
|
||||||
|
puts "In Vagrant 1.8.7, curl is broken. Please use Vagrant 1.8.6 "\
|
||||||
|
"or run 'sudo rm -f /opt/vagrant/embedded/bin/curl' to fix the "\
|
||||||
|
"issue before provisioning. See "\
|
||||||
|
"https://github.com/mitchellh/vagrant/issues/7997 "\
|
||||||
|
"for reference."
|
||||||
|
exit
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
||||||
|
|
||||||
# For LXC. VirtualBox hosts use a different box, described below.
|
# For LXC. VirtualBox hosts use a different box, described below.
|
||||||
|
|
Loading…
Reference in New Issue