From 91a99bf5d27ff818bf42d2e8125b613861dee42d Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Wed, 5 Sep 2018 23:30:55 +0100 Subject: [PATCH] imagery: move notify to after create --- cookbooks/imagery/resources/layer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/imagery/resources/layer.rb b/cookbooks/imagery/resources/layer.rb index 6057ede00..ad41ecd4e 100644 --- a/cookbooks/imagery/resources/layer.rb +++ b/cookbooks/imagery/resources/layer.rb @@ -61,7 +61,6 @@ action :create do group "root" mode 0o644 variables new_resource.to_hash - notifies :restart, "service[mapserv-fcgi-#{new_resource.site}]" end # Disable legacy service @@ -116,4 +115,5 @@ end def after_created notifies :create, "imagery_site[#{site}]" notifies :reload, "service[nginx]" + notifies :restart, "service[mapserv-fcgi-#{site}]" end -- 2.39.5