]> git.openstreetmap.org Git - chef.git/commitdiff
Use PHP 8.1 on Ubuntu 22.04
authorTom Hughes <tom@compton.nu>
Mon, 27 Jun 2022 19:54:29 +0000 (20:54 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 28 Jun 2022 16:55:38 +0000 (17:55 +0100)
cookbooks/php/attributes/default.rb

index f7a6208104e0bb1253008918129bdfd77cbd86b7..f83c1356dab310ee1284e0f2428f9948344168cd 100644 (file)
@@ -1,2 +1,6 @@
-default[:php][:version] = "7.4"
+default[:php][:version] = if node[:lsb][:release].to_f < 22.04
+                            "7.4"
+                          else
+                            "8.1"
+                          end
 default[:php][:fpm][:options] = {}