From 4cd3cf0e23e084b95234e0bbd6f21745af1fb0b0 Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 12 Jan 2024 10:30:39 -0500 Subject: [PATCH] Update install.func accommodate apt-cacher-ng --- misc/install.func | 3 +++ 1 file changed, 3 insertions(+) diff --git a/misc/install.func b/misc/install.func index d50237f4..68be24d7 100644 --- a/misc/install.func +++ b/misc/install.func @@ -131,6 +131,9 @@ network_check() { # This function updates the Container OS by running apt-get update and upgrade update_os() { msg_info "Updating Container OS" + if [[ "$CACHER" == "yes" ]]; then + echo "Acquire::http { Proxy \"http://${CACHER_IP}:3142\"; };" >/etc/apt/apt.conf.d/00aptproxy + fi $STD apt-get update $STD apt-get -o Dpkg::Options::="--force-confold" -y dist-upgrade msg_ok "Updated Container OS"