X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/8ae6c72f340507fad8c3d75ad7543062b2c84bff..155837c1471991d47195869b6359325a17cb335e:/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 -%>