aboutsummaryrefslogtreecommitdiff
path: root/network/emailrelay/doinst.sh
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2017-02-24 23:52:01 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-02-24 23:52:01 +0700
commita8a54eb166c2cf2a71e66fbafde625623f3f2bf7 (patch)
tree04c0bfb0767d86b28a1c82d3157412179382554c /network/emailrelay/doinst.sh
parentf6010a25674d9f56e32b89f976af64432da404b9 (diff)
network/emailrelay: Added (SMTP proxy and store-and-forward MTA).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/emailrelay/doinst.sh')
-rw-r--r--network/emailrelay/doinst.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/network/emailrelay/doinst.sh b/network/emailrelay/doinst.sh
new file mode 100644
index 0000000000000..a7d81dcee6289
--- /dev/null
+++ b/network/emailrelay/doinst.sh
@@ -0,0 +1,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