now supports specifying projects via env vars

This commit is contained in:
Jeffrey Paul 2016-09-01 03:38:03 +02:00
parent ba19bd83c1
commit 79a90753c7
2 changed files with 4 additions and 3 deletions

View File

@ -19,6 +19,9 @@ Then even your builds (where you can't specify links) will go fast.
* default `main,universe`.
* You may want `main,universe,restricted,multiverse`. Will use lots of
disk.
* `UBUNTU_MIRROR_PROJECTS`
* default `xenial,xenial-updates,xenial-security,xenial-backports`.
* You may want `xenial,xenial-updates,xenial-security,xenial-backports,trusty,trusty-updates,trusty-security,trusty-backports`
* `UBUNTU_MIRROR_SOURCE`
* default `archive.ubuntu.com`.
* You may want `xx.archive.ubuntu.com` (where `xx` is your country

View File

@ -16,13 +16,11 @@ debmirror \
--no-source \
-s ${MIRROR_CATEGORIES:-main,universe} \
-h ${UBUNTU_MIRROR_SOURCE:-archive.ubuntu.com} \
-d trusty,trusty-updates,trusty-security,trusty-backports \
-d xenial,xenial-updates,xenial-security,xenial-backports \
-d ${UBUNTU_MIRROR_PROJECTS:-xenial,xenial-updates,xenial-security,xenial-backports} \
--ignore-small-errors \
-r /ubuntu \
--progress \
--method=http \
$DST/ubuntu
chmod -R a+rX $DST