X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/b73176eda2a83b7fc0170a5639ad036b1c897773..c4c1ad0640ba4be09143e3a0e70ce97146618f4b:/cookbooks/apt/recipes/nginx.rb diff --git a/cookbooks/apt/recipes/nginx.rb b/cookbooks/apt/recipes/nginx.rb index 63fad62fc..b80b8bb8b 100644 --- a/cookbooks/apt/recipes/nginx.rb +++ b/cookbooks/apt/recipes/nginx.rb @@ -19,9 +19,15 @@ include_recipe "apt" +platform_name = if platform?("debian") + "debian" + else + "ubuntu" + end + apt_repository "nginx" do arch "amd64" - uri "https://nginx.org/packages/ubuntu" + uri "https://nginx.org/packages/#{platform_name}" components ["nginx"] key "ABF5BD827BD9BF62" end