Skip to content
Snippets Groups Projects
Verified Commit 6b373058 authored by David Beniamine's avatar David Beniamine
Browse files

Disable reportpage

parent ab474e16
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,13 @@ apt-get update
apt-get -y install apt-cacher-ng
# Set port
sed -i -e 's/^# \(Port:3142\)/\1/' /etc/apt-cacher-ng/acng.conf
# Add PassThrough for HTTPS backends
# Disable statistic page
sed -i \
-e 's/^# \(Port:3142\)/\1/' \
-e 's/^# \(PassThroughPattern: \.\*\)/\1/' \
-e 's/^\([^#]*ReportPage:.*$\)/#\1/' \
/etc/apt-cacher-ng/acng.conf
# Add mint backend
if [ -z "`grep linuxmint /etc/apt-cacher-ng/acng.conf`" ]
......@@ -16,9 +22,6 @@ then
/etc/apt-cacher-ng/acng.conf
fi
# Add PassThrough for HTTPS backends
sed -i -e 's/^# \(PassThroughPattern: \.\*\)/\1/' /etc/apt-cacher-ng/acng.conf
# Start service
systemctl start apt-cacher-ng.service
systemctl enable apt-cacher-ng.service
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment