Skip to content

Commit

Permalink
auto detect mysql and backup
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoang Xuan Phu committed Aug 23, 2012
1 parent 8a4adf6 commit 6f6db68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion localbackup/attributes/default.rb
Expand Up @@ -3,5 +3,7 @@
/etc
}
default[:localbackup][:time] = 17
default[:localbackup][:mysql][:enable] = false
default[:localbackup][:mysql][:enable] = File.exists?('/usr/bin/mysqldump')
default[:localbackup][:mysql][:user] = 'root'
default[:localbackup][:mysql][:password] = node[:mysql][:server_root_password]
default[:localbackup][:pgsql][:enable] = File.exists?('/usr/bin/pg_dump')

0 comments on commit 6f6db68

Please sign in to comment.