]> git.openstreetmap.org Git - chef.git/commitdiff
Use PHP 8.2 on Debian
authorTom Hughes <tom@compton.nu>
Tue, 20 Jun 2023 17:42:11 +0000 (17:42 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 20 Jun 2023 18:04:38 +0000 (19:04 +0100)
cookbooks/php/attributes/default.rb

index f83c1356dab310ee1284e0f2428f9948344168cd..c96f61188ae62070756fbc0ad0b72e0b1d90dba4 100644 (file)
@@ -1,4 +1,6 @@
-default[:php][:version] = if node[:lsb][:release].to_f < 22.04
+default[:php][:version] = if platform?("debian")
+                            "8.2"
+                          elsif qnode[:lsb][:release].to_f < 22.04
                             "7.4"
                           else
                             "8.1"