Skip to content

Commit

Permalink
fixed fedora support
Browse files Browse the repository at this point in the history
  • Loading branch information
llonchj committed Dec 30, 2012
1 parent 1facd21 commit 7650380
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }
},
Expand All @@ -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"
Expand Down

0 comments on commit 7650380

Please sign in to comment.