summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ftpsync2
-rwxr-xr-xbin/runmirrors4
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