diff options
| author | crupest <crupest@outlook.com> | 2024-08-14 00:28:12 +0800 | 
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2024-08-14 11:28:11 +0800 | 
| commit | b92f69c4b985f3ac3d33d21d76a6b7c951cb3446 (patch) | |
| tree | 027ac0f97891993b1deac6569d7b26730378ddf6 /docker/crupest-debian-dev/bootstrap/apt-source | |
| parent | 18e9bb5c63702be90076b6225eb4a9781f4fb088 (diff) | |
| download | crupest-b92f69c4b985f3ac3d33d21d76a6b7c951cb3446.tar.gz crupest-b92f69c4b985f3ac3d33d21d76a6b7c951cb3446.tar.bz2 crupest-b92f69c4b985f3ac3d33d21d76a6b7c951cb3446.zip  | |
feat(docker/debian-dev): add more output, rename vars and fix some bugs.
Diffstat (limited to 'docker/crupest-debian-dev/bootstrap/apt-source')
| -rwxr-xr-x | docker/crupest-debian-dev/bootstrap/apt-source/install-apt-https.bash | 1 | ||||
| -rwxr-xr-x | docker/crupest-debian-dev/bootstrap/apt-source/setup.bash | 7 | 
2 files changed, 7 insertions, 1 deletions
diff --git a/docker/crupest-debian-dev/bootstrap/apt-source/install-apt-https.bash b/docker/crupest-debian-dev/bootstrap/apt-source/install-apt-https.bash index 05d372b..70fb371 100755 --- a/docker/crupest-debian-dev/bootstrap/apt-source/install-apt-https.bash +++ b/docker/crupest-debian-dev/bootstrap/apt-source/install-apt-https.bash @@ -4,4 +4,5 @@ set -e  echo "Install apt https transport."  apt-get update +apt-get install -y apt-utils  apt-get install -y apt-transport-https ca-certificates diff --git a/docker/crupest-debian-dev/bootstrap/apt-source/setup.bash b/docker/crupest-debian-dev/bootstrap/apt-source/setup.bash index 60e635b..60583d4 100755 --- a/docker/crupest-debian-dev/bootstrap/apt-source/setup.bash +++ b/docker/crupest-debian-dev/bootstrap/apt-source/setup.bash @@ -4,9 +4,14 @@ set -e  dir=$(dirname "$0") -if [[ -n $IN_CHINA ]]; then +echo "Setting up apt source..." + +if [[ -n $CRUPEST_DEBIAN_DEV_IN_CHINA ]]; then +    echo "In China, using China source..."      "$dir/replace-domain.bash" "$(cat "$dir/china-source.txt")"  fi  "$dir/install-apt-https.bash"  "$dir/replace-http.bash" + +echo "Setting up apt source done."  | 
