source: trunk/third/moira/gen/aliases.sh @ 23740

Revision 23740, 776 bytes checked in by broder, 15 years ago (diff)
In moira: * New CVS snapshot (Trac: #195) * Drop patches that have been incorporated upstream. * Update to build without krb4 on systems that no longer have it. This doesn't build yet on squeeze, which lacks a krb4 library, but I'm committing now before I start hacking away at a patch to fix that.
Line 
1#!/bin/sh
2PATH=/bin:/usr/ucb:/usr/bin
3root=/usr/local/sendmail
4
5MR_MKCRED=47836474
6
7cat $root/etc/aliases.legacy > $root/etc/aliases.tmp
8cat $root/etc/aliases.new >> $root/etc/aliases.tmp
9cat $root/etc/aliases.local >> $root/etc/aliases.tmp
10mv $root/etc/aliases.tmp $root/etc/aliases.new
11
12cp /dev/null $root/etc/aliases.new.db
13
14$root/sbin/sendmail -bi -oA$root/etc/aliases.new -C$root/etc/sendmail.cf
15if [ $? != 0 ]; then
16    exit $MR_MKCRED
17fi
18
19mv $root/etc/aliases $root/etc/aliases.old
20mv $root/etc/aliases.db $root/etc/aliases.old.db
21mv $root/etc/aliases.new $root/etc/aliases
22mv $root/etc/aliases.new.db $root/etc/aliases.db
23
24rm -f $0
25exit 0
26
27# $Header: /afs/athena.mit.edu/astaff/project/moiradev/repository/moira/gen/aliases.sh,v 1.8 2000-05-29 22:17:58 zacheiss Exp $
Note: See TracBrowser for help on using the repository browser.