From ad3cccd2724b540ee6277d44924db12a06dccd23 Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Fri, 5 Feb 2010 00:27:21 +0000 Subject: [PATCH] add suhosin check; fix whitespace Signed-off-by: Stephen Gran --- facts/software.rb | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/facts/software.rb b/facts/software.rb index 2f2f1faad..f8887a1f8 100644 --- a/facts/software.rb +++ b/facts/software.rb @@ -56,8 +56,13 @@ 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") + FileTest.exist?("/usr/bin/php5") or + FileTest.exist?("/usr/bin/php5-cgi") or + FileTest.exist?("/usr/lib/cgi-bin/php5") + end +end +Facter.add("php5suhosin") do + setcode do + FileTest.exist?("/usr/lib/php5/20060613/suhosin.so") end end -- 2.20.1