diff options
author | mh <mh@immerda.ch> | 2008-07-01 18:29:30 +0000 |
---|---|---|
committer | mh <mh@immerda.ch> | 2008-07-01 18:29:30 +0000 |
commit | 25fbef80605b0ac7d29daf07d98f145f3f9936a6 (patch) | |
tree | eef9a6cffbebf9e1a8d564bb878a4e4498402ece /plugins/facter | |
parent | c731c6e89d7fa31529af44fc3aaef2ebd9e3e72e (diff) |
merged with puzzle
Diffstat (limited to 'plugins/facter')
-rw-r--r-- | plugins/facter/mysql.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/facter/mysql.rb b/plugins/facter/mysql.rb new file mode 100644 index 0000000..8982fd3 --- /dev/null +++ b/plugins/facter/mysql.rb @@ -0,0 +1,8 @@ +Facter.add("mysql_exists") do + ENV["PATH"]="/bin:/sbin:/usr/bin:/usr/sbin" + + setcode do + mysqlexists = system "which mysql >&/dev/null" + ($?.exitstatus == 0).to_s + end +end |