X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/491b5238b1afee01db317c224414ac593848bd39..c1f1e240baece8f3a3ee1d7139736e4a6a0f027e:/cookbooks/nginx/definitions/nginx_site.rb?ds=sidebyside diff --git a/cookbooks/nginx/definitions/nginx_site.rb b/cookbooks/nginx/definitions/nginx_site.rb index 64d33db3e..dc63df540 100644 --- a/cookbooks/nginx/definitions/nginx_site.rb +++ b/cookbooks/nginx/definitions/nginx_site.rb @@ -17,7 +17,7 @@ # limitations under the License. # -define :nginx_site, :action => [ :create ], :variables => {} do +define :nginx_site, :action => [:create], :variables => {} do name = params[:name] directory = params[:directory] || "/var/www/#{name}" site_action = params[:action] @@ -30,7 +30,7 @@ define :nginx_site, :action => [ :create ], :variables => {} do group "root" mode 0644 variables params[:variables].merge(:name => name, :directory => directory) - notifies :reload, "service[nginx]" + notifies :restart, "service[nginx]" end elsif site_action.include?(:delete) file "/etc/nginx/conf.d/#{name}.conf" do