Skip to content

Commit

Permalink
Update vagrant.sh
Browse files Browse the repository at this point in the history
Switch back to wget (ubuntu doesn't come with curl) and use the direct URL instead (wget in debian 7.4 was broken. 
See: #203 (comment) and a96d1b9
  • Loading branch information
sbarber committed Apr 10, 2014
1 parent 0b52f68 commit 3d2f0ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packer/scripts/common/vagrant.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash

mkdir /home/vagrant/.ssh
curl -o /home/vagrant/.ssh/authorized_keys -L \
'https://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub'
wget --no-check-certificate \
'https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub' \
-O /home/vagrant/.ssh/authorized_keys
chown -R vagrant /home/vagrant/.ssh
chmod -R go-rwsx /home/vagrant/.ssh

0 comments on commit 3d2f0ad

Please sign in to comment.