#!/bin/sh
#
#
#       This script copies aside sendmail configuration files 
#	that are overwritten by the patch, so customizations
# 	will not be lost.
#

#
# Copy aside the configuration files so customizations will not
# be overwritten.
#
	Date=`date +%m%d%y%M`
        if test -f $ROOTDIR/etc/mail/main.cf
        then
                cp -p $ROOTDIR/etc/mail/main.cf $ROOTDIR/etc/mail/main.cf.$Date
        fi
 
        if test -f $ROOTDIR/etc/mail/sendmail.cf
        then
                cp -p $ROOTDIR/etc/mail/sendmail.cf $ROOTDIR/etc/mail/sendmail.cf.$Date
        fi
 
        if test -f $ROOTDIR/etc/mail/subsidiary.cf
        then
                cp -p $ROOTDIR/etc/mail/subsidiary.cf $ROOTDIR/etc/mail/subsidiary.cf.$Date
        fi
 
	echo
	echo "The following files are overwritten by this patch"
       	echo "  "
       	echo "          /etc/mail/main.cf"
        echo "          /etc/mail/sendmail.cf"
        echo "          /etc/mail/subsidiary.cf"
        echo "\n"
        echo "Copies of them have been saved with the following names"
        echo "\n"
        echo "          /etc/mail/main.cf.$Date"
        echo "          /etc/mail/sendmail.cf.$Date"
        echo "          /etc/mail/subsidiary.cf.$Date"
        echo "\n"

        echo "The files need to be manually merged if any customizations"
        echo "were added to the files"
	echo
exit 0
