Skip to content

Commit

Permalink
abstracted app_name for thinking_sphinx
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Bird committed Sep 1, 2009
1 parent cde607d commit a7f14fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cookbooks/thinking_sphinx/recipes/default.rb
Expand Up @@ -3,11 +3,11 @@
# Cookbook Name:: thinking_sphinx
# Recipe:: default
#
#if_app_needs_recipe("thinking_sphinx") do |app,data,index|

if ['solo', 'app', 'app_master'].include?(node[:instance_role])

run_for_app("rede") do |app_name, data|
# be sure to replace "app_name" with the name of your application.
run_for_app("app_name") do |app_name, data|

directory "/var/run/sphinx" do
owner node[:owner_name]
Expand All @@ -27,6 +27,7 @@
group "root"
mode 0755
source "sphinx.logrotate"
backup false
action :create
end

Expand Down

0 comments on commit a7f14fd

Please sign in to comment.