X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/8b9c58cf740bd7a78b85590e4c845a776df030be..d8ca973df6f25a9f52ef9a7c69e6b87cc25f61cb:/cookbooks/php/attributes/default.rb diff --git a/cookbooks/php/attributes/default.rb b/cookbooks/php/attributes/default.rb index f7a620810..5dd05a52b 100644 --- a/cookbooks/php/attributes/default.rb +++ b/cookbooks/php/attributes/default.rb @@ -1,2 +1,8 @@ -default[:php][:version] = "7.4" +default[:php][:version] = if platform?("debian") + "8.2" + elsif node[:lsb][:release].to_f < 22.04 + "7.4" + else + "8.1" + end default[:php][:fpm][:options] = {}