Skip to content

Commit

Permalink
service apache2 -> apache2 or httpd
Browse files Browse the repository at this point in the history
  • Loading branch information
Blufe committed Sep 22, 2014
1 parent 9141d62 commit 6275e2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions providers/apache_module.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ def whyrun_supported?

if module_path && ::File.exists?(module_path)
service "apache2" do
service_name value_for_platform(
['centos','redhat','fedora','amazon'] => {'default' => 'httpd'},
'default' => 'apache2'
)
action :nothing
end

Expand Down
1 change: 0 additions & 1 deletion recipes/phps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,5 @@
end

if node[:phpenv][:apache_module]
include_recipe 'apache2'
phpenv_apache_module node[:phpenv][:apache_module]
end

0 comments on commit 6275e2e

Please sign in to comment.