summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorJoerg Jaspert <joerg@debian.org>2010-10-10 22:51:27 +0200
committerJoerg Jaspert <joerg@debian.org>2010-10-10 22:51:27 +0200
commitc2d450c446668a2c10f7a83e917519e5b7a5231a (patch)
tree51da0b51089716830df7b03f9a101245f1029fb0 /etc
parent54942d8cb4aebf7acdfcb60a4edd23f674393ddb (diff)
Always send sync:archive:
Signed-off-by: Joerg Jaspert <joerg@debian.org>
Diffstat (limited to 'etc')
-rw-r--r--etc/common9
1 files changed, 5 insertions, 4 deletions
diff --git a/etc/common b/etc/common
index 4a8b2c5..0fc319e 100644
--- a/etc/common
+++ b/etc/common
@@ -76,10 +76,11 @@ signal () {
date -u >> "${LOGDIR}/${MIRROR}.log"
PUSHARGS=""
- # Archive is non-empty, so tell the downstreams
- if [ -n "${PUSHARCHIVE}" ]; then
- PUSHARGS="${PUSHARGS} sync:archive:${PUSHARCHIVE}"
- fi
+ # PUSHARCHIVE empty or not, we always add the sync:archive: command to transfer.
+ # Otherwise, if nothing else is added, ssh -f would not work ("no command to execute")
+ # But ftpsync does treat "sync:archive:" as the main archive, so this works nicely.
+ PUSHARGS="${PUSHARGS} sync:archive:${PUSHARCHIVE}"
+
# We have a callback wish, tell downstreams
if [ -n "${PUSHCB}" ]; then
PUSHARGS="${PUSHARGS} sync:callback"