Comment 12 for bug 1561232

Revision history for this message
Shawn Aten (shawnmaten) wrote :

I'm looking for feedback on how to change the following files:

./magnum/templates/mesos/fragments/add-proxy.sh
./magnum/templates/swarm/fragments/add-proxy.sh
./magnum/templates/kubernetes/fragments/add-proxy.sh

The problem is that they echo changes to /etc/bash.bashrc not that they simply contain Bash-specific syntax. I haven't found another system file that could be used for this purpose except /etc/profile but it is not sourced for non-login shells which is how these files would be run.

Further I can't find the variables set in /etc/bash.bashrc by these files (http_proxy, https_proxy, and no_proxy) being used in any other shell scripts. So I'm not sure what the purpose of this code is. I looked for usage with:
grep -E 'http_proxy|https_proxy|no_proxy' `find . -type f -name '*.sh' | grep -vFf skip_files`
The file skip_files contained the files listed above.