diff --git a/recipes/default.rb b/recipes/default.rb index e3a894c398bfc5e19e1f720cb57ef1fe75d760ab..f0fa1c2cc4d0745c1257b1e87262610fe944c986 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -83,9 +83,18 @@ if node['platform_version'] == '16.04' end end else - %w(php php-cli php-curl php-intl php-gd php-mcrypt php-mysql php-xml php-json php-mbstring php-soap php-zip php-imagick).each do |name| - package name do - action :install + if node['ubuntu_base']['php_version'] == '7.1' + %w(php7.1 php7.1-cli php7.1-curl php7.1-intl php7.1-gd php7.1-mcrypt php7.1-mysql php7.1-xml php7.1-json php7.1-mbstring php7.1-soap php7.1-zip php7.1-imagick).each do |name| + package name do + action :install + end + end + else + # no mcrypt anymore + %w(php php-cli php-curl php-intl php-gd php-mysql php-xml php-json php-mbstring php-soap php-zip php-imagick).each do |name| + package name do + action :install + end end end end