Commit 19967729 authored by Jonathan's avatar Jonathan Committed by GitHub
Browse files

Merge pull request #74 from amateo/feature/debian

Fix db_dir option of radiusd.conf in debian systems
parents dd98d187 cf36d102
......@@ -133,4 +133,14 @@ class freeradius::params {
'Debian' => '/usr/lib/freeradius',
default => '/usr/lib64/freeradius',
}
$fr_raddbdir = $::osfamily ? {
'Debian' => "\${sysconfdir}/freeradius",
default => "\${sysconfdir}/raddb",
}
$fr_db_dir = $::osfamily ? {
'Debian' => "\${raddbdir}",
default => "\${localstatedir}/lib/radiusd",
}
}
......@@ -56,7 +56,7 @@ sysconfdir = /etc
localstatedir = /var
sbindir = /usr/sbin
logdir = <%= @fr_logpath %>
raddbdir = ${sysconfdir}/raddb
raddbdir = <%= @fr_raddbdir %>
radacctdir = ${logdir}/radacct
#
......@@ -70,7 +70,7 @@ certdir = ${confdir}/certs
cadir = ${confdir}/certs
run_dir = ${localstatedir}/run/${name}
db_dir = ${localstatedir}/lib/radiusd
db_dir = <%= @fr_db_dir %>
#
# libdir: Where to find the rlm_* modules.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment