prise en compte proxy

This commit is contained in:
afornerot 2019-11-29 11:38:35 +01:00
parent d02a57f155
commit 0900c8c532
1 changed files with 12 additions and 1 deletions

View File

@ -7,7 +7,18 @@ etab=$(CreoleGet libelle_etab)
eole_module=$(CreoleGet eole_module) eole_module=$(CreoleGet eole_module)
eole_release=$(CreoleGet eole_release) eole_release=$(CreoleGet eole_release)
serveurstat="https://ldapbundle.ac-arno.fr/ninestat/api" serveurstat="https://envole.ac-dijon.fr/ninestat/api"
# Proxy
activer_proxy_client=$(CreoleGet activer_proxy_client non)
if [[ "${activer_proxy_client}" == "oui" ]]
then
proxy_client_adresse=$(CreoleGet proxy_client_adresse)
proxy_client_port=$(CreoleGet proxy_client_port)
export HTTP_PROXY="${proxy_client_adresse}:${proxy_client_port}"
export HTTPS_PROXY="${proxy_client_adresse}:${proxy_client_port}"
fi
rawurlencode() { rawurlencode() {
local string="${1}" local string="${1}"