lib/open-dock/chef.rb in open-dock-0.1.17 vs lib/open-dock/chef.rb in open-dock-0.1.18
- old
+ new
@@ -4,12 +4,12 @@
Net::SSH.start(host, user) do |ssh|
if ssh.exec!('which chef-client')
say 'Chef already installed'
else
say "Installing Chef, please wait ..."
- ssh.exec! 'apt-get -y update; \
- apt-get -y install curl build-essential libxml2-dev libxslt-dev git ; \
- curl -L https://www.opscode.com/chef/install.sh | bash'
+ ssh.exec! 'sudo apt-get -y update; \
+ sudo apt-get -y install curl build-essential libxml2-dev libxslt-dev git ; \
+ curl -L https://www.opscode.com/chef/install.sh | sudo bash'
end
end
end
def self.cook(user, host)
\ No newline at end of file