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 ]";