diff options
author | Joerg Jaspert <joerg@debian.org> | 2008-10-30 22:00:17 +0100 |
---|---|---|
committer | Joerg Jaspert <joerg@debian.org> | 2008-10-30 22:00:17 +0100 |
commit | 66d13cffd124e439ef443cf17a40936c90098fe2 (patch) | |
tree | b9ae48871121127015d0c12b1d10e51cf2b28ae9 | |
parent | c511ba56bf1400c31956f534fbfbeb88702de28e (diff) |
runmirrors
add the archive name
Signed-off-by: Joerg Jaspert <joerg@debian.org>
-rwxr-xr-x | bin/ftpsync | 2 | ||||
-rwxr-xr-x | bin/runmirrors | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/bin/ftpsync b/bin/ftpsync index df31745..bc59600 100755 --- a/bin/ftpsync +++ b/bin/ftpsync @@ -418,7 +418,7 @@ if [ x${HUB} = "xtrue" ]; then # Only trigger slave mirrors if we had a push for stage2 or all if [ "xtruex" = "x${SYNCSTAGE2}x" ] || [ "xtruex" = "x${SYNCALL}x" ]; then log "Trigger slave mirrors" - ${BASEDIR}/bin/runmirrors + ${BASEDIR}/bin/runmirrors ${ARCHIVE} log "Trigger slave done" HOOK=( diff --git a/bin/runmirrors b/bin/runmirrors index 49b194b..8667a03 100755 --- a/bin/runmirrors +++ b/bin/runmirrors @@ -58,6 +58,8 @@ MIRRORS=${MIRRORS:-"${BASEDIR}/etc/${NAME}.mirror"} PROGRAM=${PROGRAM:-"${NAME}-$(hostname -s)"} # extra ssh options we might want hostwide SSH_OPTS=${SSH_OPTS:-""} +# Whats our archive name? We will also tell our leafs about it +PUSHARCHIVE=${PUSHARCHIVE:-"${CONF}"} # Some sane defaults cd ${BASEDIR} @@ -125,6 +127,8 @@ while read MTYPE MLNAME MHOSTNAME MUSER MPROTO MKEYFILE; do SSHKEY="${MKEYFILE}" PUSHLOCKOWN="${LOCKDIR}/${MLNAME}.stage1" PUSHTYPE="${MTYPE}" + PUSHLOCKS=${PUSHLOCKS} + PUSHARCHIVE=${PUSHARCHIVE} ) # And finally, push the mirror |