Merge branch 'master' into distorted
authorMark Wooding <mdw@distorted.org.uk>
Sat, 27 Oct 2012 12:05:11 +0000 (13:05 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 27 Oct 2012 12:08:28 +0000 (13:08 +0100)
* master:
  Keep track of the mirror target directory in an environment variable.

Conflicts:
bin/run-mirrors
etc/ftpsync-common.conf

1  2 
bin/run-mirrors
etc/ftpsync-common.conf

diff --combined bin/run-mirrors
@@@ -9,7 -9,8 +9,8 @@@ case $(id -un) i
  esac
  
  ## Set up a plausible environment.
 -HOME=/var/lib/mirror-admin; export HOME; cd
 -MIRRORS=/mnt/mirrors; export MIRRORS
 +HOME=/var/lib/mirror; export HOME; cd
++MIRRORS=/mnt/ftp/pub/mirrors; export MIRRORS
  PATH=$HOME/bin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/local/bin:/usr/local/sbin
  export PATH
  umask 002
diff --combined etc/ftpsync-common.conf
  ## CAREFUL, this directory will contain the mirror. Everything else that
  ## might have happened to be in there WILL BE GONE after the mirror sync!
  : ${LABEL="debian"}
- : ${TO="/mnt/ftp/pub/mirrors/$LABEL/"}
+ : ${TO="$MIRRORS/$LABEL/"}
  
  ## The upstream name of the rsync share.
  : ${RSYNC_PATH="$LABEL"}
  
  ## The host we mirror from
 -: ${RSYNC_HOST=ftp.de.debian.org}
 +: ${RSYNC_HOST=ftp.uk.debian.org}
  
  ## In case we need a user to access the rsync share at our upstream host
  : ${RSYNC_USER=}
@@@ -30,7 -30,7 +30,7 @@@
  : ${RSYNC_PASSWORD=}
  
  ## Architectures we want to carry.
 -: ${WANT_ARCH="i386:amd64"}
 +: ${WANT_ARCH="i386:amd64:armel"}
  
  ## Distributions to inspect for available architectures.
  : ${SEARCH_DISTS="oldstable stable testing unstable experimental"}
@@@ -83,6 -83,7 +83,6 @@@
  ## want.  Crazy, no?
  ARCH_EXCLUDE=$(
        bin/debian-excludes $RSYNC_HOST $RSYNC_PATH $WANT_ARCH $SEARCH_DISTS
 -      echo source
  )
  
  ## Do we have leaf mirror to signal we are done and they should sync?