]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/geoipupdate/attributes/default.rb
Merge remote-tracking branch 'github/pull/697'
[chef.git] / cookbooks / geoipupdate / attributes / default.rb
index 878d4fbb5ecfe3466eac914f55fd1bb2b2f9b83b..a4b75358311798c949d9fb5fab2747167e01e3b0 100644 (file)
@@ -1,3 +1,7 @@
 default[:geoipupdate][:account] = "149244"
 default[:geoipupdate][:editions] = %w[GeoLite2-ASN GeoLite2-City GeoLite2-Country]
-default[:geoipupdate][:directory] = "/usr/share/GeoIP"
+default[:geoipupdate][:directory] = if platform?("debian")
+                                      "/var/lib/GeoIP"
+                                    else
+                                      "/usr/share/GeoIP"
+                                    end