Skip to content

Commit

Permalink
Use /etc/profile.d/rbenv.sh for user installs too
Browse files Browse the repository at this point in the history
  • Loading branch information
thoughtless committed Mar 21, 2012
1 parent 56ccc8e commit d3c4b3b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions recipes/user_install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@

install_rbenv_pkg_prereqs

template "/etc/profile.d/rbenv.sh" do
source "rbenv.sh.erb"
owner "root"
mode "0755"
end

Array(node['rbenv']['user_installs']).each do |rb_user|
upgrade_strategy = build_upgrade_strategy(rb_user['upgrade'])
git_url = rb_user['git_url'] || node['rbenv']['git_url']
Expand Down

0 comments on commit d3c4b3b

Please sign in to comment.