From 453604d1b63c7896b17366bf7e233bc3806d2bad Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 12 Feb 2024 07:17:23 -0500 Subject: [PATCH] Update build.func tweak --- misc/build.func | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/misc/build.func b/misc/build.func index 6bc7738e..daf5dc49 100644 --- a/misc/build.func +++ b/misc/build.func @@ -340,11 +340,13 @@ advanced_settings() { echo -e "${DGN}Using Gateway IP Address: ${BGN}Default${CL}" fi - if APT_CACHER_IP=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Set APT-Cacher IP (leave blank for default)" 8 58 --title "APT-Cacher IP" 3>&1 1>&2 2>&3); then - APT_CACHER="${APT_CACHER_IP:+yes}" - echo -e "${DGN}Using APT-Cacher IP Address: ${BGN}${APT_CACHER_IP:-Default}${CL}" - else - exit-script + if [ "$var_os" != "alpine" ]; then + if APT_CACHER_IP=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Set APT-Cacher IP (leave blank for default)" 8 58 --title "APT-Cacher IP" 3>&1 1>&2 2>&3); then + APT_CACHER="${APT_CACHER_IP:+yes}" + echo -e "${DGN}Using APT-Cacher IP Address: ${BGN}${APT_CACHER_IP:-Default}${CL}" + else + exit-script + fi fi if (whiptail --backtitle "Proxmox VE Helper Scripts" --defaultno --title "IPv6" --yesno "Disable IPv6?" 10 58); then