diff options
author | crupest <crupest@outlook.com> | 2024-08-13 23:33:42 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2024-08-14 00:29:09 +0800 |
commit | 7f3a72fd3c12967f1f330de51b123f23990aaf6b (patch) | |
tree | bebf1970dc09b20df1000702d8d6cf77bcbc45c5 /docker/crupest-debian-dev/bootstrap/apt-source/setup.bash | |
parent | 8fe3578e17757a50f8285a2759c6b149fe85a0b0 (diff) | |
download | crupest-7f3a72fd3c12967f1f330de51b123f23990aaf6b.tar.gz crupest-7f3a72fd3c12967f1f330de51b123f23990aaf6b.tar.bz2 crupest-7f3a72fd3c12967f1f330de51b123f23990aaf6b.zip |
refactor(docker/debian-dev): rename debian-dev to crupest-debian-dev.
Diffstat (limited to 'docker/crupest-debian-dev/bootstrap/apt-source/setup.bash')
-rwxr-xr-x | docker/crupest-debian-dev/bootstrap/apt-source/setup.bash | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docker/crupest-debian-dev/bootstrap/apt-source/setup.bash b/docker/crupest-debian-dev/bootstrap/apt-source/setup.bash new file mode 100755 index 0000000..60e635b --- /dev/null +++ b/docker/crupest-debian-dev/bootstrap/apt-source/setup.bash @@ -0,0 +1,12 @@ +#! /usr/bin/env bash + +set -e + +dir=$(dirname "$0") + +if [[ -n $IN_CHINA ]]; then + "$dir/replace-domain.bash" "$(cat "$dir/china-source.txt")" +fi + +"$dir/install-apt-https.bash" +"$dir/replace-http.bash" |