Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b4c6017871 | |||
| 6f8da3c8e4 | |||
| caece7197d | |||
| c549c75107 | |||
| bc3736a5a4 | |||
| 6f8096650c | |||
| be0d3cb859 |
@@ -6,8 +6,9 @@ ENV MIRROR_UPDATE_INTERVAL_SECONDS 43200
|
|||||||
ENV UBUNTU_MIRROR_ARCHITECTURES amd64
|
ENV UBUNTU_MIRROR_ARCHITECTURES amd64
|
||||||
# set to anything but 'false' to mirror source code as well
|
# set to anything but 'false' to mirror source code as well
|
||||||
ENV UBUNTU_ENABLE_SOURCE_MIRRORING false
|
ENV UBUNTU_ENABLE_SOURCE_MIRRORING false
|
||||||
ENV UBUNTU_MIRROR_CATEGORIES main,universe,restricted,multiverse
|
ENV UBUNTU_MIRROR_CATEGORIES main,universe,restricted,multiverse,main/debian-installer
|
||||||
ENV UBUNTU_MIRROR_UPSTREAM archive.ubuntu.com
|
ENV UBUNTU_MIRROR_UPSTREAM archive.ubuntu.com
|
||||||
|
ENV UBUNTU_MIRROR_UPSTREAM_PATH /ubuntu
|
||||||
ENV UBUNTU_MIRROR_PROJECTS bionic,bionic-updates,bionic-security,bionic-backports,focal,focal-updates,focal-security,focal-backports
|
ENV UBUNTU_MIRROR_PROJECTS bionic,bionic-updates,bionic-security,bionic-backports,focal,focal-updates,focal-security,focal-backports
|
||||||
|
|
||||||
# The following is the URL populated in /mirrors.txt as used by mirror://
|
# The following is the URL populated in /mirrors.txt as used by mirror://
|
||||||
|
|||||||
8
mirror/syncubuntu.sh
Executable file → Normal file
8
mirror/syncubuntu.sh
Executable file → Normal file
@@ -18,6 +18,10 @@ fi
|
|||||||
|
|
||||||
DONE=0
|
DONE=0
|
||||||
|
|
||||||
|
DIDIST="$(
|
||||||
|
echo -n "$UBUNTU_MIRROR_PROJECTS" | tr "," "\n" | grep -v "\-" | tr "\n" ","
|
||||||
|
)"
|
||||||
|
|
||||||
while [[ $DONE -eq 0 ]]; do
|
while [[ $DONE -eq 0 ]]; do
|
||||||
debmirror \
|
debmirror \
|
||||||
-a ${UBUNTU_MIRROR_ARCHITECTURES} \
|
-a ${UBUNTU_MIRROR_ARCHITECTURES} \
|
||||||
@@ -25,10 +29,10 @@ while [[ $DONE -eq 0 ]]; do
|
|||||||
-h ${UBUNTU_MIRROR_UPSTREAM} \
|
-h ${UBUNTU_MIRROR_UPSTREAM} \
|
||||||
-d ${UBUNTU_MIRROR_PROJECTS} \
|
-d ${UBUNTU_MIRROR_PROJECTS} \
|
||||||
$SOURCEOPT \
|
$SOURCEOPT \
|
||||||
--di-dist=dists \
|
--di-dist="$DIDIST" \
|
||||||
--di-arch=arches \
|
--di-arch=arches \
|
||||||
--ignore-small-errors \
|
--ignore-small-errors \
|
||||||
-r /ubuntu \
|
-r "$UBUNTU_MIRROR_UPSTREAM_PATH" \
|
||||||
--getcontents \
|
--getcontents \
|
||||||
--progress \
|
--progress \
|
||||||
--method=http \
|
--method=http \
|
||||||
|
|||||||
@@ -33,12 +33,12 @@ http {
|
|||||||
|
|
||||||
index index.html index.htm;
|
index index.html index.htm;
|
||||||
|
|
||||||
#location /ubuntu/ {
|
location /ubuntu/ {
|
||||||
# # alias, not root!
|
# # alias, not root!
|
||||||
# # trailing slash important!
|
# # trailing slash important!
|
||||||
# alias /var/mirror/ubuntu/;
|
# alias /var/mirror/ubuntu/;
|
||||||
# autoindex on;
|
autoindex on;
|
||||||
#}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user