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

Revision 24319, 770 bytes checked in by broder, 15 years ago (diff)
New Moira snapshot from SVN.
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# $HeadURL: svn+ssh://svn.mit.edu/moira/trunk/moira/gen/aliases.sh $ $Id: aliases.sh 3956 2010-01-05 20:56:56Z zacheiss $
Note: See TracBrowser for help on using the repository browser.