externalise in libs: dump_key_buffer and set_system_proxy
This commit is contained in:
@@ -111,4 +111,17 @@ get_mod_name()
|
||||
}
|
||||
export -f get_mod_name
|
||||
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# Set system proxy vars
|
||||
set_system_proxy()
|
||||
{
|
||||
# Declare proxy system vars if needed and if not already declared
|
||||
if [[ -n $PROXYSRV && -n $PROXYSRVPORT && -z $NO_PROXY ]]; then
|
||||
export http_proxy=${http_proxy:-"http://$PROXYSRV:$PROXYSRVPORT/"}
|
||||
export https_proxy=${https_proxy:-"http://$PROXYSRV:$PROXYSRVPORT/"}
|
||||
fi
|
||||
}
|
||||
export -f set_system_proxy
|
||||
|
||||
# EOF
|
||||
|
||||
Reference in New Issue
Block a user