X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/8ae6c72f340507fad8c3d75ad7543062b2c84bff..57ad18f5ccb73f3285674f8b971036724d4dc73f:/cookbooks/systemd/templates/default/path.erb diff --git a/cookbooks/systemd/templates/default/path.erb b/cookbooks/systemd/templates/default/path.erb index 8d0852b19..feee4a1b4 100644 --- a/cookbooks/systemd/templates/default/path.erb +++ b/cookbooks/systemd/templates/default/path.erb @@ -25,7 +25,9 @@ PathModified=<%= path %> <% Array(@directory_not_empty).each do |path| -%> DirectoryNotEmpty=<%= path %> <% end -%> +<% if @unit -%> Unit=<%= @unit %> +<% end -%> <% if @make_directory -%> MakeDirectory=<%= @make_directory %> <% end -%>