Skip to content

Commit

Permalink
[BENTO-41] Check to see if you're on VirtualBox
Browse files Browse the repository at this point in the history
Because vagrant is now multi-provider, you might not want these
installed.
  • Loading branch information
lewg committed May 18, 2013
1 parent 732accc commit 545493d
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions definitions/.common/vagrant.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
#!/bin/bash -eux

mkdir /tmp/vbox
VER=$(cat /home/vagrant/.vbox_version)
wget http://download.virtualbox.org/virtualbox/$VER/VBoxGuestAdditions_$VER.iso
mount -o loop VBoxGuestAdditions_$VER.iso /tmp/vbox
sh /tmp/vbox/VBoxLinuxAdditions.run
umount /tmp/vbox
rmdir /tmp/vbox
rm *.iso
if [ -f /home/vagrant/.vbox_version ]; then
mkdir /tmp/vbox
VER=$(cat /home/vagrant/.vbox_version)
wget http://download.virtualbox.org/virtualbox/$VER/VBoxGuestAdditions_$VER.iso
mount -o loop VBoxGuestAdditions_$VER.iso /tmp/vbox
sh /tmp/vbox/VBoxLinuxAdditions.run
umount /tmp/vbox
rmdir /tmp/vbox
rm *.iso
fi

mkdir /home/vagrant/.ssh
wget --no-check-certificate \
Expand Down

1 comment on commit 545493d

@thasmo
Copy link

@thasmo thasmo commented on 545493d May 19, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any chance to have this also configured for VMware (fusion and workstation)?

Please sign in to comment.