mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
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:
parent
50bc9c334a
commit
6a83a3eaac
118 changed files with 248 additions and 235 deletions
|
@ -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"
|
||||
|
@ -164,4 +167,4 @@ EOF
|
|||
fi
|
||||
echo "bash -c \"\$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/${app}.sh)\"" >/usr/bin/update
|
||||
chmod +x /usr/bin/update
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue