X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=facts%2Fsoftware.rb;h=e622d35d1fc6d5d87c01543fc266fdde9ad2531e;hb=d883215e76211efea1599f68d5e8685ef0cd3d81;hp=f8887a1f8aee7590fd60cb6ebd3db4edab2b8a2a;hpb=ad3cccd2724b540ee6277d44924db12a06dccd23;p=mirror%2Fdsa-puppet.git diff --git a/facts/software.rb b/facts/software.rb index f8887a1f8..e622d35d1 100644 --- a/facts/software.rb +++ b/facts/software.rb @@ -63,6 +63,12 @@ Facter.add("php5") do end Facter.add("php5suhosin") do setcode do - FileTest.exist?("/usr/lib/php5/20060613/suhosin.so") + FileTest.exist?("/usr/lib/php5/20060613/suhosin.so") or + FileTest.exist?("/usr/lib/php5/20060613+lfs/suhosin.so") + end +end +Facter.add("syslogversion") do + setcode do + %x{dpkg-query -W -f='${Version}\n' syslog-ng | cut -b1}.chomp end end