From: Stephen Gran Date: Fri, 5 Feb 2010 00:27:21 +0000 (+0000) Subject: add suhosin check; fix whitespace X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=ad3cccd2724b540ee6277d44924db12a06dccd23;p=mirror%2Fdsa-puppet.git add suhosin check; fix whitespace Signed-off-by: Stephen Gran --- 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