diff options
author | crupest <crupest@outlook.com> | 2023-11-01 20:58:53 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2023-11-01 20:58:53 +0800 |
commit | 465521ccac39193f2ed35b4f92bf2ef7ba046418 (patch) | |
tree | 852ed0c1faaed080dba079953af18a1fa2eb77fc /docker/debian-dev/bootstrap/replace-mirrors.bash | |
parent | 2ff3e6fac0274212204bb2e1c95c54669a36cd4c (diff) | |
download | crupest-465521ccac39193f2ed35b4f92bf2ef7ba046418.tar.gz crupest-465521ccac39193f2ed35b4f92bf2ef7ba046418.tar.bz2 crupest-465521ccac39193f2ed35b4f92bf2ef7ba046418.zip |
(docker:debian-dev) Add more setups(sbuild).
Diffstat (limited to 'docker/debian-dev/bootstrap/replace-mirrors.bash')
-rwxr-xr-x | docker/debian-dev/bootstrap/replace-mirrors.bash | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/docker/debian-dev/bootstrap/replace-mirrors.bash b/docker/debian-dev/bootstrap/replace-mirrors.bash new file mode 100755 index 0000000..4fc07d0 --- /dev/null +++ b/docker/debian-dev/bootstrap/replace-mirrors.bash @@ -0,0 +1,15 @@ +#! /usr/bin/env bash + +set -e + +cp /etc/apt/sources.list /etc/apt/sources.list.bak + +cp /bootstrap/tuna-source-http.txt /etc/apt/sources.list +apt-get update +apt-get install -y apt-transport-https ca-certificates + +cp /bootstrap/tuna-source-https.txt /etc/apt/sources.list +apt-get update + +cp /bootstrap/tuna-source-link.txt /etc/crupest-apt-source + |