diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/runmirrors | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/runmirrors b/bin/runmirrors index 93922b6..a84c27b 100755 --- a/bin/runmirrors +++ b/bin/runmirrors @@ -117,6 +117,10 @@ PUSHARCHIVE=${PUSHARCHIVE:-"${CONF}"} PUSHDELAY=${PUSHDELAY:-600} # Which ssh key to use? KEYFILE=${KEYFILE:-".ssh/pushmirror"} + +# start a new log +savelog "${LOG}" > /dev/null + # where to send mails to if [ "x$(hostname -d)x" != "xdebian.orgx" ]; then # We are not on a debian.org host @@ -146,7 +150,7 @@ umask 022 mkdir -p "${LOGDIR}" mkdir -p "${LOCKDIR}" -trap 'log "Mirrorpush done" >> "${LOG}"; savelog "${LOG}" > /dev/null' EXIT +trap 'log "Mirrorpush done" >> "${LOG}"' EXIT log "Pushing leaf mirrors. Inside ftpsync: ${FROMFTPSYNC}. Pushkind: ${PUSHKIND}" >> "${LOG}" |