feat(apt-cacher-ng): add avahi-daemon for mDNS service discovery (#11140)

apt-cacher-ng ships with Avahi service config but needs avahi-daemon
to advertise itself via mDNS for auto-apt-proxy discovery.

Closes #11101
This commit is contained in:
CanbiZ (MickLesk)
2026-01-25 08:10:51 +01:00
committed by GitHub
parent be154d9a20
commit 92d33ee5e9

View File

@@ -14,7 +14,7 @@ network_check
update_os
msg_info "Installing Apt-Cacher NG"
DEBIAN_FRONTEND=noninteractive $STD apt -o Dpkg::Options::="--force-confold" install -y apt-cacher-ng
DEBIAN_FRONTEND=noninteractive $STD apt -o Dpkg::Options::="--force-confold" install -y apt-cacher-ng avahi-daemon
sed -i 's/# PassThroughPattern: .* # this would allow CONNECT to everything/PassThroughPattern: .*/' /etc/apt-cacher-ng/acng.conf
cat <<EOF >/etc/apt/apt.conf.d/00aptproxy.conf
Acquire::http::Proxy "http://localhost:3142";