summaryrefslogtreecommitdiffstats
path: root/network/mod_auth_gssapi/doinst.sh
diff options
context:
space:
mode:
author Thibaut Notteboom2019-06-04 03:59:09 +0200
committer Willy Sudiarto Raharjo2019-06-09 00:31:20 +0200
commitbd158944340eba8e5edfde7cde0717d4625d1716 (patch)
tree2ead44847a2a0a1e29bb1b8cdb5c4de519030058 /network/mod_auth_gssapi/doinst.sh
parent84f7d553543166ee131c3395de05636af7757977 (diff)
downloadslackbuilds-bd158944340eba8e5edfde7cde0717d4625d1716.tar.gz
network/mod_auth_gssapi: Added (GSSAPI Negotiate module for Apache).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/mod_auth_gssapi/doinst.sh')
-rw-r--r--network/mod_auth_gssapi/doinst.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/network/mod_auth_gssapi/doinst.sh b/network/mod_auth_gssapi/doinst.sh
new file mode 100644
index 0000000000..e307001525
--- /dev/null
+++ b/network/mod_auth_gssapi/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/httpd/extra/mod_auth_gssapi.conf.new