aboutsummaryrefslogtreecommitdiff
path: root/lib/facter/apt_running.rb
blob: e8f2156e6dcd980b3aa315bade3e99416bbb3215 (plain)
1
2
3
4
5
6
7
Facter.add("apt_running") do
  setcode do
    #Facter::Util::Resolution.exec('/usr/bin/dpkg -s mysql-server >/dev/null 2>&1 && echo true || echo false')
    Facter::Util::Resolution.exec('pgrep apt-get >/dev/null 2>&1 && echo true || echo false')
  end
end