From: Grant Slater Date: Wed, 5 Sep 2018 22:30:55 +0000 (+0100) Subject: imagery: move notify to after create X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/91a99bf5d27ff818bf42d2e8125b613861dee42d imagery: move notify to after create --- 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