#!/bin/sh # Written by Jake Vickers (jake@v2gnu.com) on 10/10/07 # This script puts maildrop into the logrotate rotation to (hopefully) stop # the file from reaching 2G and halting mail delivery qtp=/opt/qmailtoaster-plus config_loc=/etc/logrotate.d/maildrop echo "We are now adding maildrop to the logrotate schema...." if [ -f $config_loc ] ; then echo "Already installed! Exiting." sleep 2 exit 0 fi cp $qtp/etc/maildrop /etc/logrotate.d/