From 7650380eeace34a093c38b3a5938dfea63bee952 Mon Sep 17 00:00:00 2001 From: Jordi Llonch Date: Sun, 30 Dec 2012 22:22:46 +1100 Subject: [PATCH] fixed fedora support --- recipes/default.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/recipes/default.rb b/recipes/default.rb index c02cacf..ffb79e8 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -62,7 +62,7 @@ action :add end end -when 'centos', 'redhat', 'fedora' +when 'centos', 'redhat' # Configure IUS repo # http://rob.olmos.name/2010/08/centos-5-5-php-5-3-3-php-fpm-nginx-rpms/ # TODO: verify this is the best repo @@ -73,9 +73,12 @@ end pkgs = value_for_platform( - %w{ centos redhat fedora } => { + %w{ centos redhat } => { "default" => %w{ php53u-fpm and php53u-pecl-apc } }, + %w{ fedora } => { + "default" => %w{ php-fpm } + }, %w{ debian ubuntu } => { "default" => %w{ php5-fpm } }, @@ -91,7 +94,7 @@ end end -if node['platform'] == 'amazon' then +if node['platform'] == 'amazon' or node['platform'] == 'fedora' then php_fpm_service_name = "php-fpm" else php_fpm_service_name = "php5-fpm"