Browse Source

fix #8693, update Vagrant to latest rvm syntax

Brent Cook 2 years ago
parent
commit
e4ef4adf4d
1 changed files with 2 additions and 5 deletions
  1. 2
    5
      Vagrantfile

+ 2
- 5
Vagrantfile View File

@@ -3,10 +3,7 @@
3 3
 
4 4
 Vagrant.configure(2) do |config|
5 5
   config.ssh.forward_x11 = true
6
-  config.vm.box = "ubuntu/trusty64"
7
-  # TODO: find a minimal image that keeps up-to-date and
8
-  # supports multiple providers
9
-  #config.vm.box = "phusion/ubuntu-14.04-amd64"
6
+  config.vm.box = "ubuntu/xenial64"
10 7
   config.vm.network :forwarded_port, guest: 4444, host: 4444
11 8
   config.vm.provider "vmware" do |v|
12 9
 	  v.memory = 2048
@@ -33,7 +30,7 @@ Vagrant.configure(2) do |config|
33 30
 
34 31
   [ "gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3",
35 32
     "curl -L https://get.rvm.io | bash -s stable",
36
-    "source ~/.rvm/scripts/rvm && cd /vagrant && rvm --install .ruby-version",
33
+    "source ~/.rvm/scripts/rvm && cd /vagrant && rvm install `cat .ruby-version`",
37 34
     "source ~/.rvm/scripts/rvm && cd /vagrant && gem install bundler",
38 35
     "source ~/.rvm/scripts/rvm && cd /vagrant && bundle",
39 36
     "mkdir -p ~/.msf4",

Loading…
Cancel
Save