From 629109357dd98fd69a0761090be9a24e9678b0a8 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 26 Nov 2021 00:33:37 +0000 Subject: [PATCH] apt-cache: move from steps to steps-config --- src/steps/10-apt-cache.sh | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 src/steps/10-apt-cache.sh diff --git a/src/steps/10-apt-cache.sh b/src/steps/10-apt-cache.sh deleted file mode 100644 index a2cc754..0000000 --- a/src/steps/10-apt-cache.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash - -enable_apt_cache() { - local apt_caching_server="http://172.16.230.100:3142"; - - task_begin "Configuring ${apt_caching_server} as apt cache"; - - subtask_begin "Updating apt configuration"; - echo 'Acquire::http { Proxy \"${apt_caching_server}\"; }' >/etc/apt/apt.conf.d/proxy - subtask_end "$?"; - - # 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; - subtask_end "$?"; - - subtask_begin "Patching for Raspbian [ 2 / 2 ]"; - if [[ -e "/etc/apt/sources.list.d/raspi" ]]; then - rm /etc/apt/sources.list.d/raspi; - fi - subtask_end "$?"; - fi - - task_end "$?" "Failed to configure apt cache."; -} - -enable_apt_cache;