Merge pull request #936 from TraSec/inherit_proxy

inherit proxy from ENV on install
This commit is contained in:
Erik Wilson 2019-10-24 21:28:13 -07:00 committed by GitHub
commit 0843a3f105
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -567,6 +567,7 @@ create_env_file() {
UMASK=$(umask)
umask 0377
env | grep '^K3S_' | $SUDO tee ${FILE_K3S_ENV} >/dev/null
env | egrep -i '^(NO|HTTP|HTTPS)_PROXY' | $SUDO tee -a ${FILE_K3S_ENV} >/dev/null
umask $UMASK
}