|
62 | 62 | if [ "$PROXY_HOST" -a "$PROXY_PORT" ] ; then |
63 | 63 | # Set both HTTP and HTTPS proxy environment variables |
64 | 64 | export HTTP_PROXY="http://$PROXY_HOST:$PROXY_PORT" |
| 65 | + export http_proxy="http://$PROXY_HOST:$PROXY_PORT" |
65 | 66 | export HTTPS_PROXY="http://$PROXY_HOST:$PROXY_PORT" |
| 67 | + export https_proxy="http://$PROXY_HOST:$PROXY_PORT" |
66 | 68 | echo "===> Proxy configured: $HTTP_PROXY" |
67 | 69 |
|
68 | 70 | # check for auth tyo add auth |
69 | 71 | if [ "$PROXY_USER" -a "$PROXY_PASS" ] ; then |
70 | 72 | export HTTP_PROXY="http://$PROXY_USER:$PROXY_PASS@$PROXY_HOST:$PROXY_PORT" |
| 73 | + export http_proxy="http://$PROXY_USER:$PROXY_PASS@$PROXY_HOST:$PROXY_PORT" |
71 | 74 | export HTTPS_PROXY="http://$PROXY_USER:$PROXY_PASS@$PROXY_HOST:$PROXY_PORT" |
| 75 | + export https_proxy="http://$PROXY_USER:$PROXY_PASS@$PROXY_HOST:$PROXY_PORT" |
72 | 76 | echo "===> Proxy authentication enabled for user: $PROXY_USER" |
73 | 77 | fi |
74 | 78 | fi |
|
78 | 82 | R=$? |
79 | 83 |
|
80 | 84 | # Unset proxy variables to avoid get them used locally |
81 | | - unset HTTP_PROXY |
82 | | - unset HTTPS_PROXY |
| 85 | + unset HTTP_PROXY; unset http_proxy; unset HTTPS_PROXY; unset https_proxy |
83 | 86 | fi |
84 | 87 |
|
85 | 88 | # check if download fails |
@@ -203,10 +206,6 @@ if [ "$WEBSERVER_HTTP_ENABLED" == "yes" ]; then |
203 | 206 | OPTS="--no-hsts" |
204 | 207 | fi |
205 | 208 |
|
206 | | -# forcibly disable any proxy setting |
207 | | -export HTTP_PROXY=""; export HTTPS_PROXY=""; export http_proxy=""; export https_proxy=""; export socks_proxy="" |
208 | | -unset HTTP_PROXY; unset HTTPS_PROXY; unset http_proxy; unset https_proxy; unset socks_proxy |
209 | | - |
210 | 209 | echo -n "Waiting for SnappyMail to be ready..." |
211 | 210 | while [ ! -f "$PASS" ] ; do |
212 | 211 | # triggers the initial setup |
|
0 commit comments