From: Tom Hughes Date: Mon, 27 Jun 2022 19:54:29 +0000 (+0100) Subject: Use PHP 8.1 on Ubuntu 22.04 X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/b70a44f5be9594c9428ed54887328442a662335a Use PHP 8.1 on Ubuntu 22.04 --- diff --git a/cookbooks/php/attributes/default.rb b/cookbooks/php/attributes/default.rb index f7a620810..f83c1356d 100644 --- a/cookbooks/php/attributes/default.rb +++ b/cookbooks/php/attributes/default.rb @@ -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] = {}