summaryrefslogtreecommitdiff
path: root/bin/runmirrors
diff options
context:
space:
mode:
authorJoerg Jaspert <joerg@debian.org>2008-11-19 00:02:23 +0100
committerJoerg Jaspert <joerg@debian.org>2008-11-19 00:02:23 +0100
commitdccfc56c5a745f8a7a52fa3525b3af2ea6d0ba44 (patch)
tree74433cf2ce305c2edbafbd3a5f2c438641520a0e /bin/runmirrors
parent891717e7bbb56e3400f05d32ac5d0be90ee4cacb (diff)
savelog
savelog on our own Signed-off-by: Joerg Jaspert <joerg@debian.org>
Diffstat (limited to 'bin/runmirrors')
-rwxr-xr-xbin/runmirrors6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/runmirrors b/bin/runmirrors
index 676bff7..5c2a6b7 100755
--- a/bin/runmirrors
+++ b/bin/runmirrors
@@ -47,8 +47,8 @@ LOGDIR=${LOGDIR:-"${BASEDIR}/log"}
LOG=${LOG:-"${LOGDIR}/${NAME}.log"}
# Our lockfile directory
LOCKDIR=${LOCKDIR:-"${BASEDIR}/locks"}
-# How to rotate the log
-SAVELOG=${SAVELOG:-"savelog -t -c 14"}
+# How many logfiles to keep
+LOGROTATE=${LOGROTATE:14}
# Our mirrorfile
MIRRORS=${MIRRORS:-"${BASEDIR}/etc/${NAME}.mirror"}
# used by log()
@@ -80,7 +80,7 @@ umask 022
mkdir -p "${LOGDIR}"
mkdir -p "${LOCKDIR}"
-trap 'log "Mirrorpush done" >> ${LOG}; ${SAVELOG} "${LOG}" > /dev/null' EXIT
+trap 'log "Mirrorpush done" >> ${LOG}; savelog "${LOG}" > /dev/null' EXIT
log "Pushing leaf mirrors" >> ${LOG}