Browse Source

Update etc_environment

Need to remove useless semicolon because it is not working properly.
For example:
root@node:~# grep http_proxy /etc/environment
http_proxy="http://10.0.0.1:8080";
root@node:~# env | grep http_proxy
http_proxy=http://10.0.0.1:8080";
root@node:~# curl http://google.com
curl: (7) Failed to connect to 10.0.0.1 port 80: Connection refused
root@node:~# export http_proxy=http://10.0.0.1:8080;
root@node:~# curl http://google.com
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>302 Moved</TITLE></HEAD><BODY>
<H1>302 Moved</H1>
The document has moved
<A HREF="http://www.google.co.in/?gfe_rd=cr&amp;ei=_WTaWKLuD4iI8QfC0azABw">here</A>.
</BODY></HTML>
tags/2017.4
Alexander Noskov 7 years ago
parent
commit
2896b7297c
1 changed files with 8 additions and 8 deletions
  1. +8
    -8
      linux/files/etc_environment

+ 8
- 8
linux/files/etc_environment View File

@@ -11,22 +11,22 @@
{%- endfor %}

{%- if ftp_proxy and ftp_proxy.lower() != 'none' %}
ftp_proxy="{{ ftp_proxy }}";
FTP_PROXY="{{ ftp_proxy }}";
ftp_proxy="{{ ftp_proxy }}"
FTP_PROXY="{{ ftp_proxy }}"
{%- endif %}

{%- if http_proxy and http_proxy.lower() != 'none' %}
http_proxy="{{ http_proxy }}";
HTTP_PROXY="{{ http_proxy }}";
http_proxy="{{ http_proxy }}"
HTTP_PROXY="{{ http_proxy }}"
{%- endif %}

{%- if https_proxy and https_proxy.lower() != 'none' %}
https_proxy="{{ https_proxy }}";
HTTPS_PROXY="{{ https_proxy }}";
https_proxy="{{ https_proxy }}"
HTTPS_PROXY="{{ https_proxy }}"
{%- endif %}

{%- if no_proxy %}
no_proxy="{{ no_proxy|join(',') }}";
NO_PROXY="{{ no_proxy|join(',') }}";
no_proxy="{{ no_proxy|join(',') }}"
NO_PROXY="{{ no_proxy|join(',') }}"
{%- endif %}


Loading…
Cancel
Save