From e8ca37b8bf894ea44f0a98f56e5a082129feec25 Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Fri, 5 Feb 2010 00:15:35 +0000 Subject: [PATCH] add php5 fact Signed-off-by: Stephen Gran --- facts/software.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/facts/software.rb b/facts/software.rb index f7f7abc4e..2f2f1faad 100644 --- a/facts/software.rb +++ b/facts/software.rb @@ -53,3 +53,11 @@ Facter.add("spamd") do FileTest.exist?("/usr/sbin/spamd") end end +Facter.add("php5") do + setcode do + FileTest.exist?("/usr/lib/apache2/modules/libphp5.so") or + FileTest.exist?("/usr/bin/php5") or + FileTest.exist?("/usr/bin/php5-cgi") or + FileTest.exist?("/usr/lib/cgi-bin/php5") + end +end -- 2.20.1