summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/ftpsync2
-rwxr-xr-xbin/runmirrors2
-rw-r--r--etc/common3
3 files changed, 3 insertions, 4 deletions
diff --git a/bin/ftpsync b/bin/ftpsync
index 878741c..8de1e61 100755
--- a/bin/ftpsync
+++ b/bin/ftpsync
@@ -234,7 +234,7 @@ ERRORSONLY=${ERRORSONLY:-"true"}
FULLLOGS=${FULLLOGS:-"false"}
# How many logfiles to keep
-LOGROTATE=${LOGROTATE:14}
+LOGROTATE=${LOGROTATE:-14}
# Our lockfile
LOCK=${LOCK:-"${TO}/Archive-Update-in-Progress-${MIRRORNAME}"}
diff --git a/bin/runmirrors b/bin/runmirrors
index 5c2a6b7..6704bae 100755
--- a/bin/runmirrors
+++ b/bin/runmirrors
@@ -48,7 +48,7 @@ LOG=${LOG:-"${LOGDIR}/${NAME}.log"}
# Our lockfile directory
LOCKDIR=${LOCKDIR:-"${BASEDIR}/locks"}
# How many logfiles to keep
-LOGROTATE=${LOGROTATE:14}
+LOGROTATE=${LOGROTATE:-14}
# Our mirrorfile
MIRRORS=${MIRRORS:-"${BASEDIR}/etc/${NAME}.mirror"}
# used by log()
diff --git a/etc/common b/etc/common
index 54340ee..062afce 100644
--- a/etc/common
+++ b/etc/common
@@ -161,8 +161,7 @@ get2stage() {
# Rotate logfiles
savelog() {
torotate="$1"
- count=${2:-"${LOGROTATE}"}
- echo "Rotation $torotate a $count times"
+ count=${2:-${LOGROTATE}}
while [ ${count} -gt 0 ]; do
prev=$(( count - 1 ))
if [ -e "${torotate}.${prev}" ]; then