Closed
Description
Hi,
I'm trying to get the .bashrc file to be loaded (i.e. source /home/ubuntu/.bashrc) when running fab's run command to add some environmental variables and expand the path variable:
run('source /home/ubuntu/.bashrc && echo $PATH')
This shows me only:
[ubuntu@ecX-XX-XXX-XXX-XXX.compute-1.amazonaws.com] out: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
instead of a much longer list of paths that I see when I log into the remote server manually.
How do I get fab to correctly import the .bashrc file in my remote home directory?
Thank you!
Metadata
Metadata
Assignees
Labels
No labels