mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
inherit proxy settings on install
Write proxy settings into FILE_K3S_ENV on install. This should address #627
This commit is contained in:
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
Block a user