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