From 79a90753c717d0e9fd8cfd74d0f21e7c10ed128b Mon Sep 17 00:00:00 2001 From: Jeffrey Paul Date: Thu, 1 Sep 2016 03:38:03 +0200 Subject: [PATCH] now supports specifying projects via env vars --- README.markdown | 3 +++ mirror/syncubuntu.sh | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.markdown b/README.markdown index db194c1..e7fb489 100644 --- a/README.markdown +++ b/README.markdown @@ -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 diff --git a/mirror/syncubuntu.sh b/mirror/syncubuntu.sh index 21dc294..cc26ffd 100755 --- a/mirror/syncubuntu.sh +++ b/mirror/syncubuntu.sh @@ -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