From: Mark Wooding Date: Sat, 27 Oct 2012 12:05:11 +0000 (+0100) Subject: Merge branch 'master' into distorted X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mirror-admin/commitdiff_plain/56e8c7af77dd4722851949e602f566c68fe15e88?hp=1639fdf7bc2705132ebe1f501338a9d8cc7048dc Merge branch 'master' into distorted * master: Keep track of the mirror target directory in an environment variable. Conflicts: bin/run-mirrors etc/ftpsync-common.conf --- diff --git a/bin/run-mirrors b/bin/run-mirrors index d13619a..8fb9ccc 100755 --- a/bin/run-mirrors +++ b/bin/run-mirrors @@ -10,6 +10,7 @@ esac ## Set up a plausible environment. 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 --git a/etc/ftpsync-common.conf b/etc/ftpsync-common.conf index 74f0e9e..19cff88 100644 --- a/etc/ftpsync-common.conf +++ b/etc/ftpsync-common.conf @@ -15,7 +15,7 @@ ## 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"}