X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/5cffb5b0ddf35b84074a81929f05982d76a13008..8c1484ccac7f10b5f497a48295c04cbed1a01457:/cookbooks/rsyncd/templates/default/rsyncd.conf.erb?ds=sidebyside diff --git a/cookbooks/rsyncd/templates/default/rsyncd.conf.erb b/cookbooks/rsyncd/templates/default/rsyncd.conf.erb index adc04a899..c70de0ba7 100644 --- a/cookbooks/rsyncd/templates/default/rsyncd.conf.erb +++ b/cookbooks/rsyncd/templates/default/rsyncd.conf.erb @@ -33,11 +33,11 @@ <% if details[:refuse_options] -%> refuse options = <%= details[:refuse_options].join(" ") %> <% end -%> -<% if details[:hosts_allow] -%> - hosts allow = <%= details[:hosts_allow].join(",") %> +<% unless @hosts_allow[name].empty? -%> + hosts allow = <%= @hosts_allow[name].join(",") %> <% end -%> -<% if details[:hosts_deny] -%> - hosts deny = <%= details[:hosts_deny].join(",") %> +<% unless @hosts_deny[name].empty? -%> + hosts deny = <%= @hosts_deny[name].join(",") %> <% end -%> dont compress = *.gz *.tgz *.zip *.z *.rpm *.deb *.iso *.bz2 *.tbz *.7z <% end -%>