Sha256: 626d98c9005b3dfac17a2437f4eed0b1e469e307e9ab650dfe5c4083aad1c012
Contents?: true
Size: 917 Bytes
Versions: 15
Compression:
Stored size: 917 Bytes
Contents
#!/bin/sh date > /etc/vagrant_box_build_time OSX_VERS=$(sw_vers -productVersion | awk -F "." '{print $2}') # Install VMware tools if we were built with VMware if [ -e .vmfusion_version ]; then TMPMOUNT=`/usr/bin/mktemp -d /tmp/vmware-tools.XXXX` hdiutil attach darwin.iso -mountpoint "$TMPMOUNT" installer -pkg "$TMPMOUNT/Install VMware Tools.app/Contents/Resources/VMware Tools.pkg" -target / # This usually fails hdiutil detach "$TMPMOUNT" rm -rf "$TMPMOUNT" rm darwin.iso fi # Set computer/hostname COMPNAME=vagrant-osx-10${OSX_VERS} scutil --set ComputerName ${COMPNAME} scutil --set HostName ${COMPNAME}.vagrantup.com # Installing vagrant keys mkdir /Users/vagrant/.ssh chmod 700 /Users/vagrant/.ssh curl -k 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' > /Users/vagrant/.ssh/authorized_keys chmod 600 /Users/vagrant/.ssh/authorized_keys chown -R vagrant /Users/vagrant/.ssh exit
Version data entries
15 entries across 15 versions & 1 rubygems