summaryrefslogtreecommitdiffstats
path: root/network/courier-authlib/doinst.sh
diff options
context:
space:
mode:
author Derek Noonburg <derekn@foolabs.com>2013-10-27 02:59:47 -0500
committer Robby Workman <rworkman@slackbuilds.org>2013-10-27 23:39:01 -0500
commit22f0b340c3a440e2dac469a44e07980e412fef66 (patch)
tree275ecb641a16fe6535201df4b82444c656f0c0d8 /network/courier-authlib/doinst.sh
parent79ee353aab46b79b4d05312d294a02ff379c3b21 (diff)
downloadslackbuilds-22f0b340c3a440e2dac469a44e07980e412fef66.tar.gz
slackbuilds-22f0b340c3a440e2dac469a44e07980e412fef66.tar.xz
network/courier-authlib: Added (Courier authentication library)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/courier-authlib/doinst.sh')
-rw-r--r--network/courier-authlib/doinst.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/network/courier-authlib/doinst.sh b/network/courier-authlib/doinst.sh
new file mode 100644
index 0000000000..6431d28395
--- /dev/null
+++ b/network/courier-authlib/doinst.sh
@@ -0,0 +1,15 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+config etc/authlib/authdaemonrc.new
+config etc/authlib/authldaprc.new
+config etc/authlib/authmysqlrc.new
+