aboutsummaryrefslogtreecommitdiff
path: root/docker/debian-dev/bootstrap/apt-source/replace-http.bash
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2023-11-21 19:55:36 +0800
committercrupest <crupest@outlook.com>2023-11-21 19:56:11 +0800
commit31fd37e651d54af5ea8e4ef62fa95861c0c63242 (patch)
tree9808dd8563771b3d1058386578b5d1d29a78a99a /docker/debian-dev/bootstrap/apt-source/replace-http.bash
parent32f8340d434342f8fb035a1c3816e816162197da (diff)
downloadcrupest-31fd37e651d54af5ea8e4ef62fa95861c0c63242.tar.gz
crupest-31fd37e651d54af5ea8e4ef62fa95861c0c63242.tar.bz2
crupest-31fd37e651d54af5ea8e4ef62fa95861c0c63242.zip
docker(debian-dev): improve apt-source.
Diffstat (limited to 'docker/debian-dev/bootstrap/apt-source/replace-http.bash')
-rwxr-xr-xdocker/debian-dev/bootstrap/apt-source/replace-http.bash9
1 files changed, 3 insertions, 6 deletions
diff --git a/docker/debian-dev/bootstrap/apt-source/replace-http.bash b/docker/debian-dev/bootstrap/apt-source/replace-http.bash
index b5f6cca..fae082a 100755
--- a/docker/debian-dev/bootstrap/apt-source/replace-http.bash
+++ b/docker/debian-dev/bootstrap/apt-source/replace-http.bash
@@ -2,9 +2,6 @@
set -e
-apt-get update
-apt-get install -y apt-transport-https ca-certificates
-
-sed -i.bak 's/https?/https/' /etc/apt/sources.list
-apt-get update
-
+echo "Backup /etc/apt/sources.list to /etc/apt/sources.list.bak."
+echo "Replace http to https in /etc/apt/sources.list."
+sed -i.bak 's/https\?/https/' /etc/apt/sources.list