summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-04-22 18:23:34 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:33 +0100
commit917c2c094fd888d50bdc7844e6db6197d2a753cf (patch)
tree61d6e8f149b9a341988791fb1a2b939a53d0beb2 /examples
parentbdd7b9754fd011ac3a47d8e8d1d5fc6048c46db2 (diff)
downloadlive-build-917c2c094fd888d50bdc7844e6db6197d2a753cf.zip
live-build-917c2c094fd888d50bdc7844e6db6197d2a753cf.tar.gz
Also taking mirrors from environment in image.sh.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/cron/images.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/cron/images.sh b/examples/cron/images.sh
index 89af7da..0088874 100755
--- a/examples/cron/images.sh
+++ b/examples/cron/images.sh
@@ -5,6 +5,9 @@ DISTRIBUTIONS="${DISTRIBUTIONS:-etch lenny sid}"
FLAVOURS="${FLAVOURS:-standard gnome-desktop kde-desktop xfce-desktop}"
SOURCE="${SOURCE:-enabled}"
+MIRROR="${MIRROR:-http://mirror/ftp.debian.org/debian/}"
+MIRROR_SECURITY="${MIRROR_SECURITY:-http://mirror/ftp.debian.org/debian-security/}"
+
# Dynamic variables
ARCHITECTURE="$(dpkg --print-architecture)"
DATE="$(date +%Y%m%d)"
@@ -28,9 +31,9 @@ do
if [ "${SOURCE}" = "enabled" ]
then
- lh config -d ${DISTRIBUTION} -p ${FLAVOUR} --cache-stages "bootstrap rootfs" --apt-recommends disabled --source enabled --mirror-bootstrap http://mirror/ftp.debian.org/debian/ --mirror-chroot http://mirror/ftp.debian.org/debian/ --mirror-chroot-security http://mirror/ftp.debian.org/debian-security/
+ lh config -d ${DISTRIBUTION} -p ${FLAVOUR} --cache-stages "bootstrap rootfs" --apt-recommends disabled --source enabled --mirror-bootstrap ${MIRROR} --mirror-chroot ${MIRROR} --mirror-chroot-security ${MIRROR_SECURITY}
else
- lh config -d ${DISTRIBUTION} -p ${FLAVOUR} --cache-stages "bootstrap rootfs" --apt-recommends disabled --source disabled --mirror-bootstrap http://mirror/ftp.debian.org/debian/ --mirror-chroot http://mirror/ftp.debian.org/debian/ --mirror-chroot-security http://mirror/ftp.debian.org/debian-security/
+ lh config -d ${DISTRIBUTION} -p ${FLAVOUR} --cache-stages "bootstrap rootfs" --apt-recommends disabled --source disabled --mirror-bootstrap ${MIRROR} --mirror-chroot ${MIRROR} --mirror-chroot-security ${MIRROR_SECURITY}
fi
if [ "${DISTRIBUTION}" = "sid" ]