Skip to content

Commit

Permalink
Merge pull request #14 from opscode-cookbooks/irving/raising_the_bar
Browse files Browse the repository at this point in the history
Unbreak private-chef package upgrades
  • Loading branch information
Irving Popovetsky committed Sep 3, 2014
2 parents e5c9a15 + 90fb291 commit bbbe5f8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions recipes/runit_upstart.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit bbbe5f8

Please sign in to comment.