Skip to content
This repository has been archived by the owner on Mar 19, 2022. It is now read-only.

Commit

Permalink
Support for Red Hat based systems when /etc/issue does not contain di…
Browse files Browse the repository at this point in the history
…stro information
  • Loading branch information
dapatil committed Apr 24, 2013
1 parent 88557d7 commit 9de6492
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/knife-solo/bootstraps/linux.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
module KnifeSolo::Bootstraps
class Linux < Base

def issue
prepare.run_command("cat /etc/issue").stdout.strip || prepare.run_command("lsb_release -d -s").stdout.strip
prepare.run_command("cat /etc/redhat-release").stdout.strip ||
prepare.run_command("cat /etc/issue").stdout.strip ||
prepare.run_command("lsb_release -d -s").stdout.strip
end

def x86?
Expand Down

0 comments on commit 9de6492

Please sign in to comment.