Update more cookbooks

This commit is contained in:
Greg Karékinian
2017-06-16 11:25:49 +02:00
parent 7da2c5a738
commit f5858319a7
129 changed files with 1095 additions and 101571 deletions

View File

@@ -10,7 +10,7 @@ when "rhel", "fedora"
else
user = "www-data"
group = "www-data"
if platform?('ubuntu') and node.platform_version.to_f >= 16.04
if platform?('ubuntu') and node['platform_version'].to_f >= 16.04
php_conf_dir = "/etc/php/7.0"
php_fpm_name = "php7.0-fpm"
else
@@ -19,7 +19,7 @@ else
end
conf_dir = "#{php_conf_dir}/fpm/conf.d"
pool_conf_dir = "#{php_conf_dir}/fpm/pool.d"
if node.platform == "ubuntu" and node.platform_version.to_f <= 10.04
if node['platform'] == "ubuntu" and node['platform_version'].to_f <= 10.04
conf_file = "#{php_conf_dir}/fpm/php5-fpm.conf"
else
conf_file = "#{php_conf_dir}/fpm/php-fpm.conf"