2019-04-02 19:38:19 +00:00
|
|
|
info "Setting up apt-cacher-ng"
|
|
|
|
|
2020-07-08 14:42:25 +00:00
|
|
|
apt-get -y install apt-cacher-ng
|
2019-04-02 19:38:19 +00:00
|
|
|
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
|