mirror of https://github.com/k3s-io/k3s
inherit proxy settings on install
Write proxy settings into FILE_K3S_ENV on install. This should address #627pull/936/head
parent
f9888ca3bb
commit
06f477410b
|
@ -567,6 +567,7 @@ create_env_file() {
|
|||
UMASK=$(umask)
|
||||
umask 0377
|
||||
env | grep '^K3S_' | $SUDO tee ${FILE_K3S_ENV} >/dev/null
|
||||
env | egrep '^(NO|HTTP|HTTPS)_PROXY' | $SUDO tee -a ${FILE_K3S_ENV} >/dev/null
|
||||
umask $UMASK
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue