ssh sandman -l sandcastle "echo $PATH" does nozt have the docker path!
Jump to turn (7)
- 1ssh sandman -l sandcastle "echo $PATH" does nozt have the docker path!
- 2[Request interrupted by user for tool use]
- 3so the installer needs to write to ~/.profile - do not touch /etc/profile
- 4uninstall.sh should also delete the group and user. explore what we create in in
- 5yes fix all of them commit and push
- 6[Request interrupted by user]
- 7remove /etc/profile.d/sandcastle-path.sh
- User
ssh sandman -l sandcastle "echo $PATH" does nozt have the docker path!
Assistant
I'll check how the PATH is currently configured in the installer and help fix this SSH path issue.
Assistant
I can see the issue! The installer sets up the PATH in
.bashrc(line 200-218), but when you runssh user@host "command", it's a non-interactive shell that doesn't source.bashrc. Non-interactive shells only source/etc/profileand~/.profile/~/.bash_profile.Let me fix this by adding a
/etc/profile.d/script that sets the PATH for all shells:- User