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

[BUGFIX] Fix foodcritic

parent bfb6d76d
No related branches found
No related tags found
No related merge requests found
......@@ -15,8 +15,7 @@ default['typo3_site']['download_typo3'] = false
default['typo3_site']['typo3_version'] = '7.6'
default['typo3_site']['deploy_dump'] = '~/site/dump.sql'
version = String(`awk '/DISTRIB_RELEASE=/' /etc/lsb-release | sed 's/DISTRIB_RELEASE=//' | sed 's/[.]/./' | tr -d '\n'`)
if version == '16.04'
if node['platform_version'] == '16.04'
default['typo3_site']['mysql_version'] = '5.7'
else
default['typo3_site']['mysql_version'] = '5.6'
......
......@@ -23,7 +23,6 @@
# THE SOFTWARE.
data_bag = data_bag_item('apps', 'global')
version = String(`awk '/DISTRIB_RELEASE=/' /etc/lsb-release | sed 's/DISTRIB_RELEASE=//' | sed 's/[.]/./' | tr -d '\n'`)
##########################
### Add hostname entry ###
......@@ -47,7 +46,7 @@ include_recipe 'graphicsmagick'
include_recipe 'apache2'
include_recipe 'apache2::mod_ssl'
if version == '16.04'
if node['platform_version'] == '16.04'
include_recipe 'apache2::mod_fcgid'
%w(php php-cli php-curl php-intl php-gd php-mcrypt php-mysql ).each do |name|
package name do
......@@ -67,7 +66,7 @@ end
### Modify PHP Configuration ###
################################
if version == '16.04'
if node['platform_version'] == '16.04'
replace_or_add 'Increase time limit' do
path '/etc/php/7.0/fpm/php.ini'
pattern 'max_execution_time =.*'
......
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