diff --git a/templates/newsyslog/config.erb b/templates/newsyslog/config.erb index a77630250bc55feb02b11e12d54067f358e7fd59..721d3421237979a4f1b862a5a1e510afd9fe86c5 100644 --- a/templates/newsyslog/config.erb +++ b/templates/newsyslog/config.erb @@ -7,12 +7,14 @@ set archive = <%= archive %>/%Y/%M/%d/%m.%n <%= name %> { <% if stop != '' then -%> - stop: <%= stop %> + stop: <%= stop %> <% end -%> <% if restart != '' then -%> restart: <%= restart %> <% end -%> +<% if stop != '' || restart != '' then -%> +<% end -%> <% logs.each do |log| -%> <% log_name = log.gsub(/[\.\-\<\>]/, '_') -%> <% path = directory + '/' + log -%>