New feature

- The option to utilize Apt-Cacher-NG (Advanced settings) when creating LXCs. The added functionality is expected to reduce bandwidth usage and provide faster operating system updates.
- Requires the Apt-Cacher-NG LXC
This commit is contained in:
tteckster 2024-01-12 15:00:42 -05:00 committed by GitHub
parent 50bc9c334a
commit 6a83a3eaac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
118 changed files with 248 additions and 235 deletions

View file

@ -134,7 +134,8 @@ echo_default() {
echo -e "${DGN}Allocated Ram ${BGN}$var_ram${CL}"
echo -e "${DGN}Using Bridge: ${BGN}vmbr0${CL}"
echo -e "${DGN}Using Static IP Address: ${BGN}dhcp${CL}"
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
echo -e "${DGN}Using Gateway IP Address: ${BGN}Default${CL}"
echo -e "${DGN}Using Apt-Cacher IP Address: ${BGN}Default${CL}"
echo -e "${DGN}Disable IPv6: ${BGN}No${CL}"
echo -e "${DGN}Using Interface MTU Size: ${BGN}Default${CL}"
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
@ -340,6 +341,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
fi
if (whiptail --backtitle "Proxmox VE Helper Scripts" --defaultno --title "IPv6" --yesno "Disable IPv6?" 10 58); then
DISABLEIP6="yes"
else
@ -498,6 +506,8 @@ build_container() {
else
export FUNCTIONS_FILE_PATH="$(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/install.func)"
fi
export CACHER="$APT_CACHER"
export CACHER_IP="$APT_CACHER_IP"
export tz="$timezone"
export DISABLEIPV6="$DISABLEIP6"
export APPLICATION="$APP"
@ -580,4 +590,4 @@ description() {
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
systemctl start ping-instances.service
fi
}
}