Update apt-cacher-ng-install.sh

tweak `sed` command
This commit is contained in:
tteckster 2024-01-15 08:44:35 -05:00 committed by GitHub
parent 72fb5c396d
commit 87b7fc7a94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ msg_ok "Installed Dependencies"
msg_info "Installing Apt-Cacher NG"
DEBIAN_FRONTEND=noninteractive $STD apt-get -o Dpkg::Options::="--force-confold" install -y apt-cacher-ng
sed -i 's/# \(PassThroughPattern: .* # this would allow CONNECT to everything\)/\1/' /etc/apt-cacher-ng/acng.conf
sed -i 's/# PassThroughPattern: .* # this would allow CONNECT to everything/PassThroughPattern: .* /' /etc/apt-cacher-ng/acng.conf
systemctl enable -q --now apt-cacher-ng
msg_ok "Installed Apt-Cacher NG"