]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/geoipupdate/attributes/default.rb
Add exim, libosmium and pyosmium to backports for Debian 12
[chef.git] / cookbooks / geoipupdate / attributes / default.rb
index 315dfe1463f207195966e4a3156f5bf1e856296c..a4b75358311798c949d9fb5fab2747167e01e3b0 100644 (file)
@@ -1,9 +1,7 @@
 default[:geoipupdate][:account] = "149244"
 default[:geoipupdate][:editions] = %w[GeoLite2-ASN GeoLite2-City GeoLite2-Country]
 default[:geoipupdate][:account] = "149244"
 default[:geoipupdate][:editions] = %w[GeoLite2-ASN GeoLite2-City GeoLite2-Country]
-default[:geoipupdate][:directory] = if node[:lsb][:release].to_f < 22.04
-                                      "/usr/share/GeoIP"
-                                    else
+default[:geoipupdate][:directory] = if platform?("debian")
                                       "/var/lib/GeoIP"
                                       "/var/lib/GeoIP"
+                                    else
+                                      "/usr/share/GeoIP"
                                     end
                                     end
-
-default[:apt][:sources] |= ["maxmind"]