Append to backends in apt-cacher-ng

This commit is contained in:
Joshua Boniface 2023-09-05 10:52:51 -04:00
parent 96c9643753
commit 32457f2427
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ sudo apt-get install --yes vlan iptables dnsmasq redis python3 python3-pip pytho
echo "Configuring apt-cacher-ng..."
sudo systemctl enable --now apt-cacher-ng
if ! grep -q ${upstream_mirror} /etc/apt-cacher-ng/backends_debian; then
echo "http://${upstream_mirror}" | sudo tee /etc/apt-cacher-ng/backends_debian &>/dev/null
echo "http://${upstream_mirror}" | sudo tee -a /etc/apt-cacher-ng/backends_debian &>/dev/null
sudo systemctl restart apt-cacher-ng
fi