Update apt-cacher-ng-install.sh

tweak `sed` command
pull/2345/head
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
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ msg_ok "Installed Dependencies"
msg_info "Installing Apt-Cacher NG" msg_info "Installing Apt-Cacher NG"
DEBIAN_FRONTEND=noninteractive $STD apt-get -o Dpkg::Options::="--force-confold" install -y 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 systemctl enable -q --now apt-cacher-ng
msg_ok "Installed Apt-Cacher NG" msg_ok "Installed Apt-Cacher NG"