Add missing dependency on mysql, only install mysql client when needed

This commit is contained in:
Greg Karékinian 2017-04-21 12:53:37 +02:00
parent ead7db5eaf
commit e98b887665
2 changed files with 2 additions and 1 deletions

View File

@ -7,3 +7,4 @@ version "0.5.0"
name "backup"
depends 'logrotate'
depends 'mysql'

View File

@ -58,7 +58,7 @@ if node["backup"]["default_model"]
end
include_recipe 'logrotate'
if node["backup"]["mysql"]
unless node["backup"]["mysql"]["databases"].empty?
# Install MySQL client (includes mysqldump)
mysql_client 'default' do
action :create