From 71ccd17db8188fee4b2ebd8574e6e8b4b54adfb1 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 17 Apr 2019 09:11:56 +0100 Subject: [PATCH 1/1] Make unit name optional for path units --- cookbooks/systemd/templates/default/path.erb | 2 ++ 1 file changed, 2 insertions(+) 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 -%> -- 2.43.2