blob: a7d81dcee62897e2dfb317bd91847e28cff88ff3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
spool="var/spool/emailrelay"
submit="usr/sbin/emailrelay-submit"
config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
rm $NEW
fi
}
fix_permissions
config etc/rc.d/rc.emailrelay.new
config etc/emailrelay.conf.new
|