diff options
author | Micah Anderson <micah@riseup.net> | 2011-12-30 12:22:50 -0500 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2011-12-30 12:22:50 -0500 |
commit | e68fdf60f5ddd2c5e3a3ec5cba4730b5124275ed (patch) | |
tree | b883db656bb388515c3c521c7cca6efb3d5600a4 /lib/facter/mysql.rb | |
parent | dfd86c83a3032d1df92dda57884fcd9254f30ae5 (diff) | |
parent | eeb5febdaa11611443586dccc4432804f47a4271 (diff) |
Merge remote-tracking branch 'riseup/master'
Diffstat (limited to 'lib/facter/mysql.rb')
-rw-r--r-- | lib/facter/mysql.rb | 5 |
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 |