mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Check for system-wide rbenv
This commit is contained in:
parent
6479e6b26b
commit
e69f1c831b
1 changed files with 4 additions and 1 deletions
|
@ -34,11 +34,14 @@ script
|
|||
# respawn as bash so we can source in rbenv/rvm
|
||||
# quoted heredoc to tell /bin/sh not to interpret
|
||||
# variables
|
||||
|
||||
exec /bin/bash <<'EOT'
|
||||
# set HOME to the setuid user's home, there doesn't seem to be a better, portable way
|
||||
export HOME="$(eval echo ~$(id -un))"
|
||||
|
||||
if [ -d "$HOME/.rbenv/bin" ]; then
|
||||
if [ -d "/usr/local/rbenv/bin" ]; then
|
||||
export PATH="/usr/local/rbenv/bin:/usr/local/rbenv/shims:$PATH"
|
||||
elif [ -d "$HOME/.rbenv/bin" ]; then
|
||||
export PATH="$HOME/.rbenv/bin:$HOME/.rbenv/shims:$PATH"
|
||||
elif [ -f /etc/profile.d/rvm.sh ]; then
|
||||
source /etc/profile.d/rvm.sh
|
||||
|
|
Loading…
Add table
Reference in a new issue