From c2d450c446668a2c10f7a83e917519e5b7a5231a Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Sun, 10 Oct 2010 22:51:27 +0200 Subject: Always send sync:archive: Signed-off-by: Joerg Jaspert --- etc/common | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'etc') 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" -- cgit v1.2.3