Skip to content

Instantly share code, notes, and snippets.

@henriquemenezes
Last active July 14, 2017 23:49
Show Gist options
  • Save henriquemenezes/51829fd2780cc3b56fcf to your computer and use it in GitHub Desktop.
Save henriquemenezes/51829fd2780cc3b56fcf to your computer and use it in GitHub Desktop.
rbenv install system wide
# Install RBenv in /opt/ for all users
echo '# == Rbenv ==' > /etc/profile.d/rbenv.sh
echo 'export RBENV_ROOT=/opt/rbenv' >> /etc/profile.d/rbenv.sh
echo 'export PATH="$RBENV_ROOT/bin:$PATH"' >> /etc/profile.d/rbenv.sh
echo 'eval "$(rbenv init -)"' >> /etc/profile.d/rbenv.sh
chmod +x /etc/profile.d/rbenv.sh
source /etc/profile.d/rbenv.sh
curl https://raw.githubusercontent.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash
addgroup rbenv
chown -R :rbenv /opt/rbenv
chmod -R 774 /opt/rbenv
usermod -aG rbenv deployer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment