Skip to content
Snippets Groups Projects
Commit 570984c3 authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

[BUGFIX] Support PHP 7.0 installations on xenial

parent fc7d04e1
No related branches found
No related tags found
No related merge requests found
......@@ -75,10 +75,19 @@ include_recipe 'apache2'
include_recipe 'apache2::mod_ssl'
if node['platform_version'] == '16.04'
package 'libapache2-mod-php' + node['ubuntu_base']['php_version']
%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'
package 'libapache2-mod-php' + node['ubuntu_base']['php_version']
%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
end
end
else
package 'libapache2-mod-php7.0'
%w(php7.0 php-cli7.0 php-curl7.0 php-intl7.0 php-gd7.0 php-mcrypt7.0 php-mysql7.0 php-xml7.0 php-json7.0 php-mbstring7.0 php-soap7.0 php-zip7.0 php-imagick7.0).each do |name|
package name do
action :install
end
end
end
......@@ -318,7 +327,7 @@ bash 'Setup TYPO3' do
user 'vagrant'
group data_bag['groupId']
timeout 3000000
only_if { node['typo3_site']['download_typo3'] }
only_if {node['typo3_site']['download_typo3']}
code <<-EOF
if [ ! -d #{node['typo3_site']['webroot']}/typo3_src-#{node['typo3_site']['typo3_version']} ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment