summaryrefslogtreecommitdiffstats
path: root/system/cntlm/doinst.sh
diff options
context:
space:
mode:
author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>2015-04-10 17:29:00 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2015-04-10 17:29:00 +0700
commit8ed78fdce56ddeae8713c27054aa264086c63316 (patch)
tree37ef666026ea3756f64e9d698d8f68b00a29d65f /system/cntlm/doinst.sh
parent09af7691b2cb195d52deb067e720e782cbbdc21d (diff)
downloadslackbuilds-8ed78fdce56ddeae8713c27054aa264086c63316.tar.gz
slackbuilds-8ed78fdce56ddeae8713c27054aa264086c63316.tar.xz
system/cntlm: Added (Authentication Proxy).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/cntlm/doinst.sh')
-rw-r--r--system/cntlm/doinst.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/system/cntlm/doinst.sh b/system/cntlm/doinst.sh
new file mode 100644
index 0000000000..bbc311c659
--- /dev/null
+++ b/system/cntlm/doinst.sh
@@ -0,0 +1,14 @@
+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/cntlm.conf.new