inherit proxy settings on install

Write proxy settings into FILE_K3S_ENV on install. This should address #627
This commit is contained in:
Christian Tramnitz 2019-10-23 01:56:19 +02:00 committed by GitHub
parent f9888ca3bb
commit 06f477410b
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 '^(NO|HTTP|HTTPS)_PROXY' | $SUDO tee -a ${FILE_K3S_ENV} >/dev/null
umask $UMASK
}