set and unset proxy upper and lower case
This commit is contained in:
parent
51d751a8b0
commit
aece5cbbf1
1 changed files with 3 additions and 4 deletions
|
@ -72,13 +72,12 @@ setproxy () {
|
||||||
source "${CONFIG}"
|
source "${CONFIG}"
|
||||||
echo "sourced"
|
echo "sourced"
|
||||||
export PROXY_CREDS="${PROXY_USER}:${PROXY_PASS}@"
|
export PROXY_CREDS="${PROXY_USER}:${PROXY_PASS}@"
|
||||||
export proxy_user=$PROXY_USER
|
|
||||||
export proxy_pass=$PROXY_PASS
|
|
||||||
else
|
else
|
||||||
echo "${CONFIG} not existing"
|
echo "${CONFIG} not existing"
|
||||||
export PROXY_CREDS=""
|
export PROXY_CREDS=""
|
||||||
fi
|
fi
|
||||||
export {http,https,ftp}_proxy="http://${PROXY_CREDS}${PROXY_SERVER}:${PROXY_PORT}"
|
export {http,https,ftp}_proxy="http://${PROXY_CREDS}${PROXY_SERVER}:${PROXY_PORT}"
|
||||||
|
export {HTTP,HTTPS,FTP}_PROXY="http://${PROXY_CREDS}${PROXY_SERVER}:${PROXY_PORT}"
|
||||||
}
|
}
|
||||||
|
|
||||||
mencfs () {
|
mencfs () {
|
||||||
|
@ -197,9 +196,9 @@ ${KERBEROS_PASSWORD}
|
||||||
}
|
}
|
||||||
|
|
||||||
unsetproxy () {
|
unsetproxy () {
|
||||||
unset {HTTP,HTTPS,FPT}_PROXY
|
unset {HTTP,HTTPS,FTP}_PROXY
|
||||||
unset PROXY_{CREDS,USER,PASS,SERVER,PORT}
|
unset PROXY_{CREDS,USER,PASS,SERVER,PORT}
|
||||||
unset {http,https,fpt}_proxy
|
unset {http,https,ftp}_proxy
|
||||||
unset proxy_{creds,user,pass,server,port}
|
unset proxy_{creds,user,pass,server,port}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue