From c921ab6593dba5384a1884168230edd44a5102e6 Mon Sep 17 00:00:00 2001 From: Matthew Horan Date: Thu, 13 Dec 2012 11:40:07 -0500 Subject: [PATCH] Don't call libexec commands directly The rbenv command sets up paths in order to execute libexec commands itself. Fixes first run issues as a result of https://github.com/sstephenson/rbenv/commit/cf2813600391341ea13d927667b1f08cb0769610. --- libraries/chef_rbenv_recipe_helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/chef_rbenv_recipe_helpers.rb b/libraries/chef_rbenv_recipe_helpers.rb index 249cb615..dbdfdf16 100644 --- a/libraries/chef_rbenv_recipe_helpers.rb +++ b/libraries/chef_rbenv_recipe_helpers.rb @@ -78,7 +78,7 @@ def initialize_rbenv(opts) end bash "Initialize rbenv (#{opts[:user] || 'system'})" do - code %{PATH="#{prefix}/bin:$PATH" #{prefix}/libexec/rbenv-init -} + code %{PATH="#{prefix}/bin:$PATH" rbenv init -} environment({'RBENV_ROOT' => prefix}.merge(init_env)) user opts[:user] if opts[:user] group opts[:group] if opts[:group]