source: lliurex-client-env-configuration/trunk/fuentes/install-files/etc/profile.d/zzz_ignore_proxy.sh @ 6783

Last change on this file since 6783 was 6783, checked in by hectorgh, 20 months ago

adding enable/disable client proxy configuration support

File size: 347 bytes
Line 
1
2eval $(n4d-vars getvalues CLIENT_PROXY_ENABLED | grep CLIENT_PROXY_ENABLED)
3
4if [ "$CLIENT_PROXY_ENABLED" = "False" ]; then
5
6        unset http_proxy
7        unset https_proxy
8        unset no_proxy
9
10        # gsettings should only be called when using a desktop session
11        if [ "$XDG_CURRENT_DESKTOP" != "" ]; then
12                gsettings set org.gnome.system.proxy mode "none"
13        fi
14
15fi
16
Note: See TracBrowser for help on using the repository browser.