Browse files

Use /etc/profile.d/rbenv.sh for user installs too

  • Loading branch information...
1 parent 56ccc8e commit d3c4b3b588d176c563f0151c454b1d096c3c2743 @thoughtless committed Mar 21, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 recipes/user_install.rb
View
6 recipes/user_install.rb
@@ -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']

0 comments on commit d3c4b3b

Please sign in to comment.