1
0
forked from brl/citadel
citadel/realmfs-builder/realmfs-modules/apt-cacher-ng

18 lines
523 B
Plaintext
Raw Permalink Normal View History

info "Setting up apt-cacher-ng"
apt-get -y install apt-cacher-ng
systemctl -q disable apt-cacher-ng.service
#
# Configure RealmFS to use download updates through apt-cacher realm
#
install_file 0644 000apt-cacher-ng-proxy /etc/apt/apt.conf.d/
sed -i 's%https:%http://HTTPS/%' /etc/apt/sources.list
#
# Configure RealmFS to potentially run as apt-cacher system realm
#
mkdir -p /usr/share/apt-cacher-ng
install_file 0644 realm-apt-cacher-ng.service /usr/lib/systemd/system
systemctl -q enable realm-apt-cacher-ng.service