summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Paskevich <eugene@raptor.kiev.ua>2014-05-06 22:11:29 +0300
committerJoerg Jaspert <joerg@debian.org>2014-05-08 10:36:13 +0200
commit9aa0ea4ff5d55226f14fd5558249a8e27fb02e68 (patch)
treec039a84b0ede527d6df10cfc97c2f242fe267fbd
parent9a94b55c41d467b34a7ad50b91e02d7709bf21aa (diff)
Don't lose rsync logs/errors if stage 1 is repeated.
-rwxr-xr-xbin/ftpsync2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ftpsync b/bin/ftpsync
index 405be14..9a055a9 100755
--- a/bin/ftpsync
+++ b/bin/ftpsync
@@ -495,7 +495,7 @@ while [ -e "${UPDATEREQUIRED}" ]; do
set +e
# Step one, sync everything except Packages/Releases
${RSYNC} ${RSYNC_OPTIONS} ${RSYNC_OPTIONS1} ${EXCLUDE} ${SOURCE_EXCLUDE} \
- ${RSYNCPTH}::${RSYNC_PATH} "${TO}" >"${LOGDIR}/rsync-${NAME}.log" 2>"${LOGDIR}/rsync-${NAME}.error"
+ ${RSYNCPTH}::${RSYNC_PATH} "${TO}" >>"${LOGDIR}/rsync-${NAME}.log" 2>>"${LOGDIR}/rsync-${NAME}.error"
result=$?
set -e