summaryrefslogtreecommitdiff
path: root/setup-proxy.in
AgeCommit message (Collapse)Author
2023-01-24setup-*: use fake apk instead of $MOCK apkNatanael Copa
2022-11-05replace 'echo -n' and 'echo -e' with printfJakub Jirutka
'echo -n' and 'echo -e' are not portable, not all commonly used shells support both of them (in the same way). 'echo -e' is not even defined in POSIX. https://pubs.opengroup.org/onlinepubs/009604599/utilities/echo.html: > New applications are encouraged to use printf instead of echo. > ... > Conforming applications that wish to do prompting without <newline>s > or that could possibly be expecting to echo a -n, should use the > printf utility derived from the Ninth Edition system.
2022-06-28setup-proxy: fix empty proxypsykose
the while loop loops until the value of proxyurl is none or a http*:// scheme. however, when proxyurl is set to 'none', it then gets unset here (`proxyurl= ;`), but the following `if` block checks if it is 'none' and fails, so we configure an empty http_proxy= in the proxy.sh profile script. this is then read by some software, and it causes it to crash. for instance, flatpak via glib reads `http_proxy` from the environment, and an empty variable is illegal.
2022-05-12setup-proxy: fix removal of proxy with 'none'Natanael Copa
Make sure that we remove the proxy with setup-proxy none. Also allow https proxies while at it and mock wget for testing
2022-05-12setup-proxy: fix usageNatanael Copa
print usage help text to stderr on invalid option
2022-03-16fix PREFIX in *.inNick Hanley
Commit ec0c7a7 changed the sed expression for PREFIX injection but forgot to update the scripts.
2022-03-16setup-proxy: added no_proxy=localhost to ensure that no proxy is used when ↵jakovrr
connecting to localhost
2021-11-16setup-proxy: use GNU wget when http proxy is setNatanael Copa
busybox wget does not support HTTP CONNECT, unconditionally install gnu wget when proxy is set. ref: https://gitlab.alpinelinux.org/alpine/aports/-/issues/10446 ref: https://gitlab.alpinelinux.org/alpine/alpine-conf/-/merge_requests/32
2016-11-03setup-proxy: indent heredocJakub Jirutka
2016-11-02indent heredocs and replace echos with heredoc where appropriateJakub Jirutka
2016-11-02fix mixed tabs & spaces and surplus empty lines at EOFJakub Jirutka
2012-03-23setup-proxy: use ask instead of default_read and add debug stuffNatanael Copa
add -p for setting ROOT so we can debug this easier.
2012-03-05setup-proxy: (over?)simplifyNatanael Copa
We want avoid asking questions and in the proxy case most people will pick 'none'. For those who needs proxy there is still a possibility to specify the entire proxy url in one shot, rather than asking lot of questions.
2012-02-24setup-proxy: minor cleanupsNatanael Copa
2012-02-24setup-proxy: new tool for configuring proxyDieter Bloms