Skip to content
Snippets Groups Projects
Commit 7bac1b52 authored by davidc's avatar davidc
Browse files

radiusd is freeradius on Debian

parent 00d4297c
Branches
Tags
No related merge requests found
......@@ -2,6 +2,9 @@
Facter.add(:freeradius_maj_version) do
setcode do
version = Facter::Core::Execution.exec('radiusd -v')
if version.nil?
version = Facter::Core::Execution.exec('freeradius -v')
end
if !version.nil?
version = version.split(/\n/)[0].match(/FreeRADIUS Version (\d)\.\d\.\d/)[1].to_s
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment