From 59b11c7ed59f47e357d1b4c92db4b9188c93b05f Mon Sep 17 00:00:00 2001 From: AJ Christensen Date: Tue, 3 Apr 2012 14:11:11 +1200 Subject: [PATCH] seriously, just install wget. --- definitions/.common/chef.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/definitions/.common/chef.sh b/definitions/.common/chef.sh index 22aaa61..2f95d7c 100755 --- a/definitions/.common/chef.sh +++ b/definitions/.common/chef.sh @@ -1,5 +1,8 @@ #!/bin/bash -ex +apt-get update +apt-get install wget -y + exists() { if command -v $1 &>/dev/null then @@ -12,8 +15,8 @@ exists() { install_sh="http://opscode.com/chef/install.sh" if ! exists /usr/bin/chef-client; then - if exists curl; then - curl -L ${install_sh} | bash + if exists wget; then + wget ${install_sh} -O - | bash fi fi