Added error handeling for init.sh
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/bin/ash
|
||||
#Get Resources
|
||||
curl -L --retry 7 --retry-delay 5 http://dl-4.alpinelinux.org/alpine/MIRRORS.txt -o /etc/apt-cacher-ng/alpine_mirrors
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user