Compare commits
	
		
			No commits in common. "be0d3cb85921adb11ee9f64063fb8c452f5e24d1" and "a2b750a71e539c642775d20b84061f0879da088a" have entirely different histories.
		
	
	
		
			be0d3cb859
			...
			a2b750a71e
		
	
		
@ -16,24 +16,17 @@ if [[  "$UBUNTU_ENABLE_SOURCE_MIRRORING" != "false" ]]; then
 | 
			
		||||
    SOURCEOPT="--source"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
DONE=0
 | 
			
		||||
debmirror \
 | 
			
		||||
	-a ${UBUNTU_MIRROR_ARCHITECTURES} \
 | 
			
		||||
	-s ${UBUNTU_MIRROR_CATEGORIES} \
 | 
			
		||||
	-h ${UBUNTU_MIRROR_UPSTREAM} \
 | 
			
		||||
	-d ${UBUNTU_MIRROR_PROJECTS} \
 | 
			
		||||
	$SOURCEOPT \
 | 
			
		||||
    --ignore-small-errors \
 | 
			
		||||
	-r /ubuntu \
 | 
			
		||||
    --getcontents \
 | 
			
		||||
	--progress \
 | 
			
		||||
	--method=http \
 | 
			
		||||
	$DST/ubuntu
 | 
			
		||||
 | 
			
		||||
while [[ $DONE -eq 0 ]]; do
 | 
			
		||||
    debmirror \
 | 
			
		||||
        -a ${UBUNTU_MIRROR_ARCHITECTURES} \
 | 
			
		||||
        -s ${UBUNTU_MIRROR_CATEGORIES} \
 | 
			
		||||
        -h ${UBUNTU_MIRROR_UPSTREAM} \
 | 
			
		||||
        -d ${UBUNTU_MIRROR_PROJECTS} \
 | 
			
		||||
        $SOURCEOPT \
 | 
			
		||||
        --ignore-small-errors \
 | 
			
		||||
        -r /ubuntu \
 | 
			
		||||
        --getcontents \
 | 
			
		||||
        --progress \
 | 
			
		||||
        --method=http \
 | 
			
		||||
        $DST/ubuntu
 | 
			
		||||
    if [[ $? -eq 0 ]]; then
 | 
			
		||||
        DONE=1
 | 
			
		||||
    fi
 | 
			
		||||
    chmod -R a+rX $DST
 | 
			
		||||
    sleep 1
 | 
			
		||||
done
 | 
			
		||||
chmod -R a+rX $DST
 | 
			
		||||
 | 
			
		||||
@ -3,14 +3,11 @@ worker_processes auto;
 | 
			
		||||
 | 
			
		||||
pid         /var/run/nginx.pid;
 | 
			
		||||
 | 
			
		||||
error_log /dev/stdout info;
 | 
			
		||||
 | 
			
		||||
events {
 | 
			
		||||
    worker_connections  1024;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
http {
 | 
			
		||||
    access_log /dev/stdout;
 | 
			
		||||
    include       /etc/nginx/mime.types;
 | 
			
		||||
    default_type  application/octet-stream;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user