This message was deleted.
# aws
s
This message was deleted.
l
It looks like the environment variables you're expecting to see are set up in .bashrc. Non-interactive bash shells don't run .bashrc. Plus, you don't seem to be running bash (though you might be, I can't see the shebang in mysql-setup.sh). You can familiarize yourself with how remote execs and non-interactive shells work by reading `man bash`; the section titled "Invocation" has all the details.
There are many places to read up on how shebangs work and how to use them effectively over ssh. This page looks like a good place to start: https://linuxhandbook.com/shebang/
155 Views