Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Commit

Permalink
Merge pull request #25 from paulcollinsiii/grep_by_word
Browse files Browse the repository at this point in the history
Grep by word for DB Name
  • Loading branch information
fromonesrc committed Sep 5, 2013
2 parents 4c2b90b + 2017213 commit a16733d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/db.pp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
creates => "${mysql::config::datadir}/${name}",
require => Exec['wait-for-mysql'],
unless => "mysql -uroot -p13306 -e 'show databases' \
--password='' | grep '${name}'"
--password='' | grep -w '${name}'"
}
} elsif $ensure == 'absent' {
exec { "delete mysql db ${name}":
Expand Down

0 comments on commit a16733d

Please sign in to comment.