summaryrefslogtreecommitdiff
path: root/etc/common
diff options
context:
space:
mode:
authorJoerg Jaspert <joerg@debian.org>2008-10-21 23:34:26 +0200
committerJoerg Jaspert <joerg@debian.org>2008-10-21 23:34:26 +0200
commit682a54a87a71580c8e0d93bdba52977d4e8404c8 (patch)
tree97499feae387cca2061d884422069f34686c033a /etc/common
parent9933097c021fe61b2bb342e07405dcf55ea8f138 (diff)
common
fix little errors Signed-off-by: Joerg Jaspert <joerg@debian.org>
Diffstat (limited to 'etc/common')
-rw-r--r--etc/common10
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/common b/etc/common
index ec7e482..622822c 100644
--- a/etc/common
+++ b/etc/common
@@ -50,10 +50,10 @@ signal () {
PUSHARGS=""
if [ -n ${PUSHARCHIVE} ]; then
- PUSHARGS="${PUSHARGS sync:archive:${PUSHARCHIVE}"
+ PUSHARGS="${PUSHARGS} sync:archive:${PUSHARCHIVE}"
fi
if [ -n ${PUSHCB} ]; then
- PUSHARGS="${PUSHARGS sync:callback"
+ PUSHARGS="${PUSHARGS} sync:callback"
fi
# Step1: Do a push to only sync stage1, do not background
@@ -73,15 +73,15 @@ signal () {
found=$((found + 1))
fi
done
- if [ ${total} -eq ${found} ];
- break;
+ if [ ${total} -eq ${found} ]; then
+ break
fi
sleep 20
done
rm -f "${PUSHLOCKOWN}"
# Step3: It either timed out or we have all the "lock"files, sync stage2
- PUSHARGS1="sync:stage2"
+ PUSHARGS2="sync:stage2"
ssh $SSH_OPTIONS -i "${SSHKEY}" -o"user ${USERNAME}" -${SSHPROTO} "${HOSTNAME}" "${PUSHARGS} ${PUSHARGS2}" >>"${LOGDIR}/${MIRROR}.log" 2>&1
else
# Can't decide? Then you get nothing.