Commit 2d8c0c3a authored by Jonathan Gazeley's avatar Jonathan Gazeley
Browse files

Template name of SQL query file

parent a4000890
......@@ -89,8 +89,13 @@ define freeradius::sql (
}
# Install custom query file
$queryfile = $::freeradius_version ? {
/^2\./ => "${fr_basepath}/sql/${database}/dialup.conf",
/^3\./ => "${fr_basepath}/sql/queries.conf",
default => "${fr_basepath}/sql/queries.conf",
}
if ($custom_query_file) {
file { "${fr_basepath}/sql/${database}/dialup.conf":
file { $queryfile:
ensure => $ensure,
mode => '0640',
owner => 'root',
......
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