Add reuse proxy (#34)

pull/49/head
Bohan Yang 4 years ago committed by GitHub
parent cbf1d3d64e
commit 36b0ca839b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      README.md
  2. 5
      debi.sh

@ -110,6 +110,7 @@ Otherwise, you can run this command to revert all changes made by the script:
* `--daily-d-i` Use latest daily build of d-i (Debian Installer) for the unreleased version: 12 (bookworm), sid (unstable)
* `--mirror-protocol http` or `https` or `ftp`
* `--https` alias to `--mirror-protocol https`
* `--reuse-proxy` Reuse the value of `http(s)_proxy` environment variable as the mirror proxy
* `--proxy, --mirror-proxy` Set an HTTP proxy for APT and downloads
* `--mirror-host deb.debian.org`
* `--mirror-directory /debian`

@ -306,6 +306,9 @@ while [ $# -gt 0 ]; do
mirror_proxy=$2
shift
;;
--reuse-proxy)
set_mirror_proxy
;;
--security-repository)
security_repository=$2
shift
@ -531,8 +534,6 @@ EOF
echo 'd-i network-console/start select Continue' | $save_preseed
}
set_mirror_proxy
$save_preseed << EOF
# Mirror settings

Loading…
Cancel
Save