X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/9103a52c846aa09cb010e385b8af7d4a8b2ac9d0..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 -%>