From 3854ee07a4974ca7276071c4f8e7a07670fe3db8 Mon Sep 17 00:00:00 2001 From: Andriy Yanko Date: Tue, 11 Oct 2011 18:41:56 +0300 Subject: [PATCH] Detect path of rvm-shell bin --- passenger | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/passenger b/passenger index 694d218..cfc57ef 100644 --- a/passenger +++ b/passenger @@ -7,7 +7,11 @@ # Short-Description: manage multiple passenger instances ### END INIT INFO -RVM_SHELL="/usr/local/bin/rvm-shell" +RVM_SHELL="rvm-shell" + +[ -x /usr/local/bin/rvm-shell ] && RVM_SHELL="/usr/local/bin/rvm-shell" + +[ -x /usr/local/rvm/bin/rvm-shell ] && RVM_SHELL="/usr/local/rvm/bin/rvm-shell" RVM_PATH="/usr/local/rvm"