mirror of
https://github.com/bohanyang/debi.git
synced 2026-09-27 06:26:15 +00:00
Add reuse proxy (#34)
This commit is contained in:
@@ -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)
|
* `--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`
|
* `--mirror-protocol http` or `https` or `ftp`
|
||||||
* `--https` alias to `--mirror-protocol https`
|
* `--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
|
* `--proxy, --mirror-proxy` Set an HTTP proxy for APT and downloads
|
||||||
* `--mirror-host deb.debian.org`
|
* `--mirror-host deb.debian.org`
|
||||||
* `--mirror-directory /debian`
|
* `--mirror-directory /debian`
|
||||||
|
|||||||
@@ -306,6 +306,9 @@ while [ $# -gt 0 ]; do
|
|||||||
mirror_proxy=$2
|
mirror_proxy=$2
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
--reuse-proxy)
|
||||||
|
set_mirror_proxy
|
||||||
|
;;
|
||||||
--security-repository)
|
--security-repository)
|
||||||
security_repository=$2
|
security_repository=$2
|
||||||
shift
|
shift
|
||||||
@@ -531,8 +534,6 @@ EOF
|
|||||||
echo 'd-i network-console/start select Continue' | $save_preseed
|
echo 'd-i network-console/start select Continue' | $save_preseed
|
||||||
}
|
}
|
||||||
|
|
||||||
set_mirror_proxy
|
|
||||||
|
|
||||||
$save_preseed << EOF
|
$save_preseed << EOF
|
||||||
|
|
||||||
# Mirror settings
|
# Mirror settings
|
||||||
|
|||||||
Reference in New Issue
Block a user