X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/68e068818d559ef35bdf2a138a93596337828ef9..HEAD:/cookbooks/apt/recipes/nginx.rb?ds=sidebyside 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