Skip to content

Commit

Permalink
added require to file vhost
Browse files Browse the repository at this point in the history
  • Loading branch information
wrecked committed Feb 10, 2009
1 parent dad27cf commit 67a3bdb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/recipes/passenger_recipes.rb
Expand Up @@ -56,10 +56,14 @@ def passenger_site(args)
conf_template_contents = File.read(conf_template)
doc_root = Configuration[:prefix] + "/" + name + "/current/public"
conf_content = ERB.new(conf_template_contents).result(binding)
file conf_file, { :ensure => :present, :content => conf_content, :notify => service("apache2"), :alias => "passenger_vhost" }
file conf_file, { :ensure => :present,
:content => conf_content,
:notify => service("apache2"),
:alias => "passenger_vhost",
:require => exec("enable_passenger") }

exec "passenger_enable_site", { :command => "/usr/sbin/a2ensite #{name}",
:creates => '/etc/apache2/sites-enabled/#{name}',
:require => [package("apache2-mpm-worker"), file("passenger_vhost")]}
:require => [package("apache2-mpm-worker"), file("passenger_vhost")] }
end
end

0 comments on commit 67a3bdb

Please sign in to comment.