]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/php/attributes/default.rb
Use PHP 7.4 on Ubuntu 20.04
[chef.git] / cookbooks / php / attributes / default.rb
index ecc9c7c66c746f7a042031340f9c316e3461ebf8..0ca636813b10d67d962662ce0b06f1b688882683 100644 (file)
@@ -1 +1,5 @@
-default[:php][:version] = "7.2"
+default[:php][:version] = if node[:lsb][:release].to_f < 20.04
+                            "7.2"
+                          else
+                            "7.4"
+                          end