summaryrefslogtreecommitdiff
path: root/lib/facter/mysql.rb
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2011-12-30 12:22:50 -0500
committerMicah Anderson <micah@riseup.net>2011-12-30 12:22:50 -0500
commite68fdf60f5ddd2c5e3a3ec5cba4730b5124275ed (patch)
treeb883db656bb388515c3c521c7cca6efb3d5600a4 /lib/facter/mysql.rb
parentdfd86c83a3032d1df92dda57884fcd9254f30ae5 (diff)
parenteeb5febdaa11611443586dccc4432804f47a4271 (diff)
Merge remote-tracking branch 'riseup/master'
Diffstat (limited to 'lib/facter/mysql.rb')
-rw-r--r--lib/facter/mysql.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/facter/mysql.rb b/lib/facter/mysql.rb
index e262ec1..d08dabe 100644
--- a/lib/facter/mysql.rb
+++ b/lib/facter/mysql.rb
@@ -1,8 +1,5 @@
Facter.add("mysql_exists") do
- ENV["PATH"]="/bin:/sbin:/usr/bin:/usr/sbin"
-
setcode do
- mysqlexists = system "which mysql > /dev/null 2>&1"
- ($?.exitstatus == 0)
+ File.exist? '/usr/bin/mysql'
end
end