]> git.openstreetmap.org Git - chef.git/commitdiff
Use PHP 7.4 on Ubuntu 20.04
authorTom Hughes <tom@compton.nu>
Mon, 18 May 2020 14:22:36 +0000 (15:22 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 18 May 2020 14:22:55 +0000 (15:22 +0100)
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