]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/apt/recipes/nginx.rb
Fix installation of SST tools
[chef.git] / cookbooks / apt / recipes / nginx.rb
index 63fad62fceced00fda39cb160a203c57a94b3a09..b80b8bb8bf0b0484ef20d7f78eacba691ee03591 100644 (file)
 
 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