Merge branch 'next' of sneak/docker-ubuntumirror into master
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
commit
be0d3cb859
@ -16,6 +16,9 @@ if [[ "$UBUNTU_ENABLE_SOURCE_MIRRORING" != "false" ]]; then
|
|||||||
SOURCEOPT="--source"
|
SOURCEOPT="--source"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
DONE=0
|
||||||
|
|
||||||
|
while [[ $DONE -eq 0 ]]; do
|
||||||
debmirror \
|
debmirror \
|
||||||
-a ${UBUNTU_MIRROR_ARCHITECTURES} \
|
-a ${UBUNTU_MIRROR_ARCHITECTURES} \
|
||||||
-s ${UBUNTU_MIRROR_CATEGORIES} \
|
-s ${UBUNTU_MIRROR_CATEGORIES} \
|
||||||
@ -28,5 +31,9 @@ debmirror \
|
|||||||
--progress \
|
--progress \
|
||||||
--method=http \
|
--method=http \
|
||||||
$DST/ubuntu
|
$DST/ubuntu
|
||||||
|
if [[ $? -eq 0 ]]; then
|
||||||
|
DONE=1
|
||||||
|
fi
|
||||||
chmod -R a+rX $DST
|
chmod -R a+rX $DST
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
@ -3,11 +3,14 @@ worker_processes auto;
|
|||||||
|
|
||||||
pid /var/run/nginx.pid;
|
pid /var/run/nginx.pid;
|
||||||
|
|
||||||
|
error_log /dev/stdout info;
|
||||||
|
|
||||||
events {
|
events {
|
||||||
worker_connections 1024;
|
worker_connections 1024;
|
||||||
}
|
}
|
||||||
|
|
||||||
http {
|
http {
|
||||||
|
access_log /dev/stdout;
|
||||||
include /etc/nginx/mime.types;
|
include /etc/nginx/mime.types;
|
||||||
default_type application/octet-stream;
|
default_type application/octet-stream;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user