From dc97aa89a1a48fac018893c05601e26f2bd2256b Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Mon, 21 Mar 2022 02:35:48 +0000 Subject: [PATCH] apat-cache: fix bug --- src/steps-config/10-apt-cache.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/steps-config/10-apt-cache.sh b/src/steps-config/10-apt-cache.sh index c21aec5..c50c888 100755 --- a/src/steps-config/10-apt-cache.sh +++ b/src/steps-config/10-apt-cache.sh @@ -12,7 +12,10 @@ enable_apt_cache() { # From /etc/os-release - see run.sh if [[ "${ID}" == "raspbian" ]]; then subtask_begin "Patching for Raspbian [ 1 / 2 ]"; - echo 'deb http://archive.raspberrypi.org/debian/ buster main ui' >/etc/apt/sources.list.d/raspi.list; + # HTTPS doesn't allow for our proxy to cache it + if [[ -r "/etc/apt/sources.list.d/raspi.list" ]]; then + sed -i 's/https:/http:/g' /etc/apt/sources.list.d/raspi.list + fi subtask_end "$?"; subtask_begin "Patching for Raspbian [ 2 / 2 ]";