projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9103a52
)
Make unit name optional for path units
author
Tom Hughes
<tom@compton.nu>
Wed, 17 Apr 2019 08:11:56 +0000
(09:11 +0100)
committer
Tom Hughes
<tom@compton.nu>
Wed, 17 Apr 2019 08:11:56 +0000
(09:11 +0100)
cookbooks/systemd/templates/default/path.erb
patch
|
blob
|
history
diff --git
a/cookbooks/systemd/templates/default/path.erb
b/cookbooks/systemd/templates/default/path.erb
index 8d0852b196d121a5f9f99b76e7f048538f676d2f..feee4a1b4a24dcbae730e5d3871030958e6686c6 100644
(file)
--- 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 -%>