summaryrefslogtreecommitdiff
path: root/lib/facter/mysql.rb
diff options
context:
space:
mode:
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