From 3d2f0ad70f1b00799f8c48eb06804a28770bbbdb Mon Sep 17 00:00:00 2001 From: Scott Barber Date: Wed, 9 Apr 2014 21:59:38 -0600 Subject: [PATCH] Update vagrant.sh Switch back to wget (ubuntu doesn't come with curl) and use the direct URL instead (wget in debian 7.4 was broken. See: https://github.com/opscode/bento/pull/203#issuecomment-40037333 and https://github.com/opscode/bento/commit/a96d1b9 --- packer/scripts/common/vagrant.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packer/scripts/common/vagrant.sh b/packer/scripts/common/vagrant.sh index 60de57ee7..cfb0ff2d6 100644 --- a/packer/scripts/common/vagrant.sh +++ b/packer/scripts/common/vagrant.sh @@ -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