#!/bin/sh # 2003-01-05 Rafael Skodlar # quick fix for log rotate because there was none under cron # Do not run unless you know what you are doing! LOG_DIR=/var/log/exim cd $LOG_DIR echo "Edit this file first $0" exit nb=12 while [ "$nb" -gt 0 ] do let "nb1 = $nb + 1" [ -e mainlog.$nb.gz ] && mv mainlog.$nb.gz mainlog.${nb1}.gz [ -e rejectlog.$nb.gz ] && mv rejectlog.$nb.gz rejectlog.${nb1}.gz let nb=$nb-1 done ls -l $LOG_DIR