From 3506dd39923bae8cb7f3115ebe43038c08292a0c Mon Sep 17 00:00:00 2001 From: rapenchukd Date: Thu, 12 Feb 2015 16:55:22 -0500 Subject: [PATCH] Add ability to specify shell On certain systems that have an odd default shell (ksh, zsh) no shebang line specifying shell will cause shell crash (preventing ssh login and other issues) --- templates/default/chruby.sh.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/default/chruby.sh.erb b/templates/default/chruby.sh.erb index d92f775..af61b16 100644 --- a/templates/default/chruby.sh.erb +++ b/templates/default/chruby.sh.erb @@ -1,3 +1,7 @@ +<% if node['chruby']['shell'] -%> +#!<%= node['chruby']['shell'] -%> +<% end -%> + source /usr/local/chruby/share/chruby/chruby.sh <% if ::File.exists?("/opt/chefdk/embedded") -%>