Skip to content

Commit

Permalink
Merge pull request #138 from sinfomicien/pr/111
Browse files Browse the repository at this point in the history
fix redhat package name for 10.1 ver (rebased #111)
  • Loading branch information
shoekstra committed Mar 11, 2017
2 parents 26df522 + e0ec9f8 commit 1e2b26c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion recipes/_redhat_galera.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@
action :install
end

package 'MariaDB-Galera-server' do
package_name = if node['mariadb']['install']['version'].to_f < 10.1
'MariaDB-Galera-server'
else
'MariaDB-server'
end

package package_name do
action :install
notifies :create, 'directory[/var/log/mysql]', :immediately
notifies :start, 'service[mysql]', :immediately
Expand Down

0 comments on commit 1e2b26c

Please sign in to comment.