Skip to content
Browse files

CHEF-2863: make sure wget is installed for ubuntu apt bootstrap

  • Loading branch information...
1 parent 7a5b609 commit ada782b40c634c92685e8fa1fae20aabcd95859b @btm committed Jan 17, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 chef/lib/chef/knife/bootstrap/ubuntu10.04-apt.erb
View
1 chef/lib/chef/knife/bootstrap/ubuntu10.04-apt.erb
@@ -2,6 +2,7 @@ bash -c '
<%= "export http_proxy=\"#{knife_config[:bootstrap_proxy]}\"" if knife_config[:bootstrap_proxy] -%>
if [ ! -f /usr/bin/chef-client ]; then
+ apt-get install -y wget
echo "chef chef/chef_server_url string <%= @chef_config[:chef_server_url] %>" | debconf-set-selections
[ -f /etc/apt/sources.list.d/opscode.list ] || echo "deb http://apt.opscode.com <%= chef_version.to_f == 0.10 ? "lucid-0.10" : "lucid" %> main" > /etc/apt/sources.list.d/opscode.list
wget <%= "--proxy=on " if knife_config[:bootstrap_proxy] %>-O- http://apt.opscode.com/packages@opscode.com.gpg.key | apt-key add -

0 comments on commit ada782b

Please sign in to comment.
Something went wrong with that request. Please try again.