diff options
author | Joerg Jaspert <joerg@debian.org> | 2010-10-10 22:51:27 +0200 |
---|---|---|
committer | Joerg Jaspert <joerg@debian.org> | 2010-10-10 22:51:27 +0200 |
commit | c2d450c446668a2c10f7a83e917519e5b7a5231a (patch) | |
tree | 51da0b51089716830df7b03f9a101245f1029fb0 /etc | |
parent | 54942d8cb4aebf7acdfcb60a4edd23f674393ddb (diff) |
Always send sync:archive:
Signed-off-by: Joerg Jaspert <joerg@debian.org>
Diffstat (limited to 'etc')
-rw-r--r-- | etc/common | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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" |