/usr/share/ltsp/plugins/ltsp-build-client/Debian/010-http-proxy is in ltsp-server 5.5.7-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | case "$MODE" in
commandline)
add_option "http-proxy" "`eval_gettext "use specified http proxy"`" "advanced" "true"
add_option "no-guess-proxy" "`eval_gettext "do not autodetect apt proxy configuration"`" "advanced" "false"
;;
configure)
if [ -n "$option_http_proxy_value" ]; then
export http_proxy="$option_http_proxy_value"
fi
if [ -z "$option_no_guess_proxy_value" ]; then
if [ -z "$http_proxy" ]; then
eval $(apt-config shell http_proxy acquire::http::proxy)
[ "$http_proxy" = "false" ] && http_proxy=""
export http_proxy
fi
fi
;;
after-install)
if [ -n "$http_proxy" ]; then
mkdir -p $ROOT/etc/apt/apt.conf.d
cat << EOF > $ROOT/etc/apt/apt.conf.d/00proxy-guess
acquire::http::proxy "$http_proxy";
EOF
fi
;;
esac
|