From 66d13cffd124e439ef443cf17a40936c90098fe2 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Thu, 30 Oct 2008 22:00:17 +0100 Subject: runmirrors add the archive name Signed-off-by: Joerg Jaspert --- bin/ftpsync | 2 +- bin/runmirrors | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3