From 4a3fe5c34f986fd93819a9d3cfc910c88e432033 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 24 Mar 2016 11:58:46 -0300 Subject: Handle the whole log_facility block together --- templates/dhcpd.conf.debian.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/dhcpd.conf.debian.erb b/templates/dhcpd.conf.debian.erb index 64318c8..f193fab 100644 --- a/templates/dhcpd.conf.debian.erb +++ b/templates/dhcpd.conf.debian.erb @@ -14,7 +14,9 @@ ddns-update-style <%= @ddns_update %>; <%= @opts.join(";\n") %>; <% end -%> +<% if @log_facility != '' -%> # Use this to send dhcp log messages to a different log file (you also # have to hack syslog.conf to complete the redirection). -<% unless @log_facility != '' -%>log-facility <%= @log_facility %>;<%- end -%> +log-facility <%= @log_facility %>; +<%- end -%> -- cgit v1.2.3