]> git.pld-linux.org Git - packages/sendmail.git/commitdiff
- avoid multiple processing obsoleted config files ("mv" instead of "cp")
authorankry <ankry@pld-linux.org>
Wed, 6 Mar 2002 15:26:27 +0000 (15:26 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    sendmail.spec -> 1.84

sendmail.spec

index 1b49c36788a7601ed5e27414ecc804ca9cf15da1..a7c5e9da52a880a419881faf1df2bff029406f54 100644 (file)
@@ -256,14 +256,14 @@ if [ -f /etc/mail/deny ] ; then
        cat /etc/mail/deny | \
                awk 'BEGIN{ print "# Entries from obsoleted /etc/mail/deny"} \
                {print $1" REJECT"}' >> /etc/mail/access
-       cp -f /etc/mail/deny /etc/mail/deny.rpmorig
+       mv -f /etc/mail/deny /etc/mail/deny.rpmorig
 fi
 for oldfile in relay_allow ip_allow name_allow ; do
        if [ -f /etc/mail/$oldfile ] ; then
                cat /etc/mail/$oldfile | \
                        awk "BEGIN { print \"# Entries from obsoleted /etc/mail/$oldfile\" ;} \
                        { print $1\" RELAY\" }" >> /etc/mail/access
-               cp -f /etc/mail/$oldfile /etc/mail/$oldfile.rpmorig
+               mv -f /etc/mail/$oldfile /etc/mail/$oldfile.rpmorig
        fi
 done
 
@@ -274,7 +274,7 @@ if [ -f /etc/sendmail.cw ] ; then
        cat /etc/sendmail.cw | \
                awk 'BEGIN { print "# Entries from obsoleted /etc/sendmail.cw" ;} \
                { print $1 }' >> /etc/mail/local-host-names
-       cp -f /etc/sendmail.cw /etc/sendmail.cw.rpmorig
+       mv -f /etc/sendmail.cw /etc/sendmail.cw.rpmorig
 fi
 #
 # Rebuild maps (next reboot will rebuild also)
This page took 0.109932 seconds and 4 git commands to generate.