From 9e3d78bd62cf801247bfb65f4764fd2eb44c03fe Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Tue, 5 Oct 2021 22:32:53 +0100 Subject: [PATCH] imagery: fix systemd_unit quoting --- cookbooks/imagery/resources/site.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbooks/imagery/resources/site.rb b/cookbooks/imagery/resources/site.rb index 11bb8b646..5c6f05927 100644 --- a/cookbooks/imagery/resources/site.rb +++ b/cookbooks/imagery/resources/site.rb @@ -129,7 +129,7 @@ action :create do end - # Ensure service is stopped else socket cannot reload + # Ensure service is stopped because otherwise the socket cannot reload service "mapserv-fcgi-#{new_resource.site}" do provider Chef::Provider::Service::Systemd action :nothing @@ -137,7 +137,7 @@ action :create do subscribes :stop, "systemd_socket[mapserv-fcgi-#{new_resource.site}]" end - systemd_unit 'mapserv-fcgi-#{new_resource.site}.socket' do + systemd_unit "mapserv-fcgi-#{new_resource.site}.socket" do action [:enable, :start] subscribes :restart, "systemd_socket[mapserv-fcgi-#{new_resource.site}]" end -- 2.39.5