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

Commit

Permalink
Ensure rsync is installed on openSUSE
Browse files Browse the repository at this point in the history
For example the 12.2 AMIs offered by SUSE Studio do not have rsync
installed. (We can not add integration test for them as Omnibus
install.sh does not support 12.2 even though the package for 12.1
works fine.)
  • Loading branch information
tmatilai committed Mar 8, 2013
1 parent 7b71367 commit f43ba47
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/knife-solo/bootstraps/linux.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ def debianoid_omnibus_install
omnibus_install
end

def zypper_omnibus_install
run_command("sudo zypper --non-interactive install rsync")
omnibus_install
end

def yum_omnibus_install
run_command("sudo yum clean all")
run_command("sudo yum -y install rsync")
Expand Down Expand Up @@ -84,7 +89,7 @@ def distro
when %r{SUSE Linux Enterprise Server 1[12]}
{:type => "omnibus"}
when %r{openSUSE 12}
{:type => "omnibus"}
{:type => "zypper_omnibus"}
when %r{This is \\n\.\\O \(\\s \\m \\r\) \\t}
{:type => "emerge_gem"}
else
Expand Down

0 comments on commit f43ba47

Please sign in to comment.