mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-22 02:41:12 +00:00
make it easier to use a custom mirror
This commit is contained in:
parent
2403a1d29c
commit
15e23d2de5
@ -1,21 +1,21 @@
|
||||
#! /bin/sh
|
||||
set -e
|
||||
|
||||
MIRROR=
|
||||
case $(hostname --fqdn) in
|
||||
bld-*.mmjgroup.com) ;;
|
||||
*.mmjgroup.com)
|
||||
case $ARCH in
|
||||
i386|amd64) MIRROR=http://archive.mmjgroup.com/ubuntu/ ;;
|
||||
*) MIRROR=http://archive.mmjgroup.com/ubuntu-ports/ ;;
|
||||
esac
|
||||
;;
|
||||
*.0c3.net) MIRROR=http://ftp.iinet.net.au/linux/ubuntu/ ;;
|
||||
*.ubuntu.com) MIRROR=http://ftpmaster.internal/ubuntu/ ;;
|
||||
*.warthogs.hbd.com) MIRROR=http://ftpmaster.internal/ubuntu/ ;;
|
||||
*.buildd) MIRROR=http://ftpmaster.internal/ubuntu/ ;;
|
||||
*) ;;
|
||||
esac
|
||||
if [ -z "$MIRROR" ]; then
|
||||
case $(hostname --fqdn) in
|
||||
bld-*.mmjgroup.com) ;;
|
||||
*.mmjgroup.com)
|
||||
case $ARCH in
|
||||
i386|amd64) MIRROR=http://archive.mmjgroup.com/ubuntu/ ;;
|
||||
*) MIRROR=http://archive.mmjgroup.com/ubuntu-ports/ ;;
|
||||
esac
|
||||
;;
|
||||
*.0c3.net) MIRROR=http://ftp.iinet.net.au/linux/ubuntu/ ;;
|
||||
*.ubuntu.com) MIRROR=http://ftpmaster.internal/ubuntu/ ;;
|
||||
*.warthogs.hbd.com) MIRROR=http://ftpmaster.internal/ubuntu/ ;;
|
||||
*.buildd) MIRROR=http://ftpmaster.internal/ubuntu/ ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
mkdir -p config/chroot_local-tasklists config/chroot_local-packagelists
|
||||
rm -f config/chroot_local-tasklists/livecd-rootfs.list config/chroot_local-packagelists/livecd-rootfs.list
|
||||
|
Loading…
x
Reference in New Issue
Block a user