summaryrefslogtreecommitdiff
path: root/bin/runmirrors
diff options
context:
space:
mode:
authorJoerg Jaspert <joerg@debian.org>2008-10-30 22:00:17 +0100
committerJoerg Jaspert <joerg@debian.org>2008-10-30 22:00:17 +0100
commit66d13cffd124e439ef443cf17a40936c90098fe2 (patch)
treeb9ae48871121127015d0c12b1d10e51cf2b28ae9 /bin/runmirrors
parentc511ba56bf1400c31956f534fbfbeb88702de28e (diff)
runmirrors
add the archive name Signed-off-by: Joerg Jaspert <joerg@debian.org>
Diffstat (limited to 'bin/runmirrors')
-rwxr-xr-xbin/runmirrors4
1 files changed, 4 insertions, 0 deletions
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