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