]> git.openstreetmap.org Git - chef.git/commitdiff
Correct path to geoip directory on 22.04
authorTom Hughes <tom@compton.nu>
Mon, 4 Jul 2022 19:19:01 +0000 (20:19 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 4 Jul 2022 19:19:01 +0000 (20:19 +0100)
cookbooks/geoipupdate/attributes/default.rb

index 315dfe1463f207195966e4a3156f5bf1e856296c..90476814c2cb80206d9ba1dc2bf6161987c7dc5d 100644 (file)
@@ -1,9 +1,5 @@
 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
-                                      "/var/lib/GeoIP"
-                                    end
+default[:geoipupdate][:directory] = "/usr/share/GeoIP"
 
 default[:apt][:sources] |= ["maxmind"]