Skip to content

Commit

Permalink
seriously, just install wget.
Browse files Browse the repository at this point in the history
  • Loading branch information
AJ Christensen committed Apr 3, 2012
1 parent 943c876 commit 59b11c7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions 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
Expand All @@ -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

Expand Down

0 comments on commit 59b11c7

Please sign in to comment.