Revision 24319,
770 bytes
checked in by broder, 15 years ago
(diff) |
New Moira snapshot from SVN.
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | PATH=/bin:/usr/ucb:/usr/bin |
---|
3 | root=/usr/local/sendmail |
---|
4 | |
---|
5 | MR_MKCRED=47836474 |
---|
6 | |
---|
7 | cat $root/etc/aliases.legacy > $root/etc/aliases.tmp |
---|
8 | cat $root/etc/aliases.new >> $root/etc/aliases.tmp |
---|
9 | cat $root/etc/aliases.local >> $root/etc/aliases.tmp |
---|
10 | mv $root/etc/aliases.tmp $root/etc/aliases.new |
---|
11 | |
---|
12 | cp /dev/null $root/etc/aliases.new.db |
---|
13 | |
---|
14 | $root/sbin/sendmail -bi -oA$root/etc/aliases.new -C$root/etc/sendmail.cf |
---|
15 | if [ $? != 0 ]; then |
---|
16 | exit $MR_MKCRED |
---|
17 | fi |
---|
18 | |
---|
19 | mv $root/etc/aliases $root/etc/aliases.old |
---|
20 | mv $root/etc/aliases.db $root/etc/aliases.old.db |
---|
21 | mv $root/etc/aliases.new $root/etc/aliases |
---|
22 | mv $root/etc/aliases.new.db $root/etc/aliases.db |
---|
23 | |
---|
24 | rm -f $0 |
---|
25 | exit 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.