From 479f4356382130c928fcb664d499d2771e5d805b Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Wed, 22 Nov 2023 00:53:06 +0100 Subject: [PATCH] CT aptcacherng: Fix permission issue apt-cacher-ng binary moved in Debian 12, updated setcap command to allow it use port 80 --- CT-Files/aptcacherng/Scripts/Init.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CT-Files/aptcacherng/Scripts/Init.sh b/CT-Files/aptcacherng/Scripts/Init.sh index d96238c..f72015d 100644 --- a/CT-Files/aptcacherng/Scripts/Init.sh +++ b/CT-Files/aptcacherng/Scripts/Init.sh @@ -2,8 +2,11 @@ #Get Resources curl -L --retry 7 --retry-delay 5 http://dl-4.alpinelinux.org/alpine/MIRRORS.txt -o /etc/apt-cacher-ng/alpine_mirrors || exit 1 curl -L --retry 7 --retry-delay 5 https://www.centos.org/download/full-mirrorlist.csv | sed 's/^.*"http:/http:/' | sed 's/".*$//' | grep ^http > /etc/apt-cacher-ng/centos_mirrors -#Allow apt-cacher-ng to use port 80 -setcap 'cap_net_bind_service=+ep' /usr/sbin/apt-cacher-ng +#Allow apt-cacher-ng to use port 80 (Debian 11) +##setcap 'cap_net_bind_service=+ep' /usr/sbin/apt-cacher-ng +#Allow apt-cacher-ng to use port 80 (Debian 12) +setcap 'cap_net_bind_service=+ep' /sbin/apt-cacher-ng + #Move configs in place mv /opt/Setup/Configs/acng.conf /etc/apt-cacher-ng/acng.conf mv /opt/Setup/Scripts/UpdateMirrorList.sh /opt/UpdateMirrorList.sh -- 2.49.1