chruby command not available to deploy_user on Ubuntu 22.04
Steps To Reproduce
Followed the following steps to install chruby system-wide:
wget -P /tmp https://github.com/postmodern/chruby/releases/download/v0.3.9/chruby-0.3.9.tar.gz
cd /tmp
tar -xzvf chruby-0.3.9.tar.gz
cd chruby-0.3.9/
sudo make install
The added the below:
2.
if [ -n "$BASH_VERSION" ] || [ -n "$ZSH_VERSION" ]; then
source /usr/local/share/chruby/chruby.sh
fi
to /etc/profile.d/chruby.sh , which according to the guide should ensure system-wide availability.
Created a deploy_user via sudo adduser --disabled-password deployer
Switch to deploy_user via sudo su deployer
run chruby --version as deploy_user
Expected Behavior
Expect chruby command to be available to deploy_user:
Description
chruby
command not available to deploy_user on Ubuntu 22.04Steps To Reproduce
Followed the following steps to install chruby system-wide:
The added the below:
2.
to
/etc/profile.d/chruby.sh
, which according to the guide should ensure system-wide availability.sudo adduser --disabled-password deployer
sudo su deployer
chruby --version
as deploy_userExpected Behavior
Expect
chruby
command to be available todeploy_user
:Actual Behavior
Environment