diff --git a/recipes/runit_upstart.rb b/recipes/runit_upstart.rb index cebc7de..189a607 100644 --- a/recipes/runit_upstart.rb +++ b/recipes/runit_upstart.rb @@ -4,7 +4,8 @@ # All Rights Reserved # -project_name = node['enterprise']['name'] +project_name = node['enterprise']['name'].clone +project_name.gsub!(/_/, '-') if project_name == 'private_chef' # Ensure the previous named iteration of the system job is nuked execute "initctl stop opscode-runsvdir" do @@ -21,7 +22,7 @@ group "root" mode "0644" variables({ - :install_path => node[project_name]['install_path'], + :install_path => node[node['enterprise']['name']]['install_path'], :project_name => project_name }) source "init-runsvdir.erb"