Last active
July 14, 2017 23:49
-
-
Save henriquemenezes/51829fd2780cc3b56fcf to your computer and use it in GitHub Desktop.
rbenv install system wide
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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