X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/b73176eda2a83b7fc0170a5639ad036b1c897773..5188a8f5887ab9ec2f08a7a3acf53aad22f38c77:/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