summaryrefslogtreecommitdiff
path: root/lib/facter/mysql.rb
blob: e262ec1022cad6ae0798d7674933211cb522d8a7 (plain)
1
2
3
4
5
6
7
8
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)
    end
end