Skip to content

Commit

Permalink
Fix libruby package name on Debian. Check if apt packages were instal…
Browse files Browse the repository at this point in the history
…led in bootstrap for Debian [Fixes matschaffer#373]
  • Loading branch information
leonid-shevtsov committed Sep 16, 2015
1 parent 28c264a commit a7efa0f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/knife-solo/bootstraps/linux.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,17 @@ def debianoid_gem_install
run_command("sudo apt-get update")

ui.msg "Installing required packages..."
@packages = %w(ruby ruby-dev libopenssl-ruby irb
@packages = %w(ruby ruby-dev libruby irb
build-essential wget ssl-cert rsync)
run_command <<-BASH
result = run_command <<-BASH
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes install #{package_list}
BASH

if result.exit_code != 0
ui.fatal "Failed to install packages. Try installing them manually: #{@packages.join(' ')}"
exit 1
end

gem_install
end

Expand Down

0 comments on commit a7efa0f

Please sign in to comment.