]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/systemd/templates/default/path.erb
Make unit name optional for path units
[chef.git] / cookbooks / systemd / templates / default / path.erb
index 8d0852b196d121a5f9f99b76e7f048538f676d2f..feee4a1b4a24dcbae730e5d3871030958e6686c6 100644 (file)
@@ -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 -%>