slackbuilds_ponce/network/mod_auth_kerb/doinst.sh
Thibaut Notteboom 5cb7ea0807 network/mod_auth_kerb: require krb5 instead of heimdal
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
2013-10-28 21:50:23 -05:00

14 lines
394 B
Bash

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_kerb.conf.new