Permalink
Browse files

Quit mysql on successful login in 'mysql root password'.

  • Loading branch information...
1 parent 3729757 commit a40e546a0d024e4f16a421c06d9fed1ea23f2677 @benhoskings benhoskings committed Sep 18, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 mysql.rb
View
@@ -24,7 +24,7 @@
dep 'mysql root password' do
requires 'mysql software'
- met? { failable_shell('mysql -u root').stderr["Access denied for user 'root'@'localhost' (using password: NO)"] }
+ met? { failable_shell("echo '\q' | mysql -u root").stderr["Access denied for user 'root'@'localhost' (using password: NO)"] }
meet { mysql(%Q{GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY '#{var :db_admin_password}'}, 'root', false) }
end

0 comments on commit a40e546

Please sign in to comment.