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